From 153506c8daa08c6032f9ef66599ab7b5493d09f9 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 25 Nov 2018 16:22:25 -0800 Subject: [PATCH] [shellcheck] ignore SC2230 errors --- nvm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvm.sh b/nvm.sh index 8c94401..4db973c 100644 --- a/nvm.sh +++ b/nvm.sh @@ -54,8 +54,10 @@ nvm_command_info() { if type "${COMMAND}" | nvm_grep -q hashed; then INFO="$(type "${COMMAND}" | command sed -E 's/\(|\)//g' | command awk '{print $4}')" elif type "${COMMAND}" | nvm_grep -q aliased; then + # shellcheck disable=SC2230 INFO="$(which "${COMMAND}") ($(type "${COMMAND}" | command awk '{ $1=$2=$3=$4="" ;print }' | command sed -e 's/^\ *//g' -Ee "s/\`|'//g" ))" elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is an alias for"; then + # shellcheck disable=SC2230 INFO="$(which "${COMMAND}") ($(type "${COMMAND}" | command awk '{ $1=$2=$3=$4=$5="" ;print }' | command sed 's/^\ *//g'))" elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is \\/"; then INFO="$(type "${COMMAND}" | command awk '{print $3}')"