Skip to content

Commit d2d36db

Browse files
authored
Merge pull request #6711 from ahorek/solaris
[launcher] basename for solaris
2 parents 13a0c91 + b6e4984 commit d2d36db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/jruby.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resolve_symlinks() {
7474
# 4) append the basename
7575
sym="$(readlink "$cur_path")"
7676
sym_base="$(cd -P -- "$(dirname -- "$cur_path")" >/dev/null && pwd -P)"
77-
cur_path="$(cd "$sym_base" && cd "$(dirname -- "$sym")" && pwd -P)/$(basename -- "$sym")"
77+
cur_path="$(cd "$sym_base" && cd "$(dirname -- "$sym")" && pwd -P)/$(basename "$sym")"
7878
done
7979
result="$cur_path"
8080
}
@@ -83,7 +83,7 @@ resolve_symlinks() {
8383

8484
# get the absolute path of the executable
8585
BASE_DIR="$(cd -P -- "$(dirname -- "$BASH_SOURCE")" >/dev/null && pwd -P)"
86-
resolve_symlinks "$BASE_DIR/$(basename -- "$BASH_SOURCE")"
86+
resolve_symlinks "$BASE_DIR/$(basename "$BASH_SOURCE")"
8787
SELF_PATH="$result"
8888

8989
JRUBY_HOME="${SELF_PATH%/*/*}"

0 commit comments

Comments
 (0)