Properly address shellcheck warnings ignored in #156

This commit is contained in:
Robin Schneider 2017-03-07 16:20:04 +01:00
parent 604156344d
commit ae2c5b88a1
No known key found for this signature in database
GPG Key ID: 489A4D5EC353C98A

View File

@ -6,8 +6,8 @@ else
current_script_path="$0" current_script_path="$0"
fi fi
# shellcheck disable=SC2155,SC2164 export ASDF_DIR
export ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null; pwd)" ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null || exit 1; pwd)"
export PATH="${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH" export PATH="${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH"
if [ -n "$ZSH_VERSION" ]; then if [ -n "$ZSH_VERSION" ]; then