Skip to content

Commit

Permalink
[Fix] avoid bash-specific syntax
Browse files Browse the repository at this point in the history
Fixes #3499
  • Loading branch information
ljharb committed Dec 20, 2024
1 parent b9b0ea8 commit 19f452b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@ fi
if [ -z "${NVM_DIR-}" ]; then
# shellcheck disable=SC2128
if [ -n "${BASH_SOURCE-}" ]; then
# shellcheck disable=SC2169,SC3054
NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"
NVM_SCRIPT_SOURCE="${BASH_SOURCE}"
fi
# shellcheck disable=SC2086
NVM_DIR="$(nvm_cd ${NVM_CD_FLAGS} "$(dirname "${NVM_SCRIPT_SOURCE:-$0}")" >/dev/null && \pwd)"
Expand Down

0 comments on commit 19f452b

Please sign in to comment.