[shellcheck] ignore SC2230 errors
parent
c1150c41ab
commit
153506c8da
2
nvm.sh
2
nvm.sh
|
@ -54,8 +54,10 @@ nvm_command_info() {
|
||||||
if type "${COMMAND}" | nvm_grep -q hashed; then
|
if type "${COMMAND}" | nvm_grep -q hashed; then
|
||||||
INFO="$(type "${COMMAND}" | command sed -E 's/\(|\)//g' | command awk '{print $4}')"
|
INFO="$(type "${COMMAND}" | command sed -E 's/\(|\)//g' | command awk '{print $4}')"
|
||||||
elif type "${COMMAND}" | nvm_grep -q aliased; then
|
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" ))"
|
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
|
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'))"
|
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
|
elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is \\/"; then
|
||||||
INFO="$(type "${COMMAND}" | command awk '{print $3}')"
|
INFO="$(type "${COMMAND}" | command awk '{print $3}')"
|
||||||
|
|
Loading…
Reference in New Issue