[Fix] `debug`: correct mistaken `-V` to `--version` from #2922

Jordan Harband 2022-10-24 10:51:20 -07:00
parent 095a4ca655
commit 924d77cc90
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -2997,7 +2997,7 @@ nvm() {
nvm_err "OS version: ${OS_VERSION}"
fi
if nvm_has "awk"; then
nvm_err "awk: $(nvm_command_info awk), $({ command awk -V 2>/dev/null || command awk -W version; } \
nvm_err "awk: $(nvm_command_info awk), $({ command awk --version 2>/dev/null || command awk -W version; } \
| command head -n 1)"
else
nvm_err "awk: not found"