Skip to content

Commit b445da0

Browse files
[Fix] Fix sed syntax error in nvm_command_info()
1 parent 6597e11 commit b445da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ nvm_command_info() {
5454
local INFO
5555
COMMAND="${1}"
5656
if type "${COMMAND}" | nvm_grep -q hashed; then
57-
INFO="$(type "${COMMAND}" | command sed -E 's/\(|)//g' | command awk '{print $4}')"
57+
INFO="$(type "${COMMAND}" | command sed -E 's/\(|\)//g' | command awk '{print $4}')"
5858
elif type "${COMMAND}" | nvm_grep -q aliased; then
5959
INFO="$(which "${COMMAND}") ($(type "${COMMAND}" | command awk '{ $1=$2=$3=$4="" ;print }' | command sed -e 's/^\ *//g' -Ee "s/\`|'//g" ))"
6060
elif type "${COMMAND}" | nvm_grep -q "^${COMMAND} is an alias for"; then

0 commit comments

Comments
 (0)