mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Properly address shellcheck warnings ignored in #156
This commit is contained in:
parent
604156344d
commit
ae2c5b88a1
4
asdf.sh
4
asdf.sh
@ -6,8 +6,8 @@ else
|
||||
current_script_path="$0"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2155,SC2164
|
||||
export ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null; pwd)"
|
||||
export ASDF_DIR
|
||||
ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null || exit 1; pwd)"
|
||||
export PATH="${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH"
|
||||
|
||||
if [ -n "$ZSH_VERSION" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user