From b7e2d7d24dded00fd1870e18ce5eabaedf5efab4 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 16 Aug 2015 18:08:50 -0700 Subject: [PATCH] Oops, the string passed to `awk` isn't the same as a shell command. Fixes #808. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index d5a62f7..dc6ade4 100755 --- a/nvm.sh +++ b/nvm.sh @@ -317,7 +317,7 @@ nvm_is_valid_version() { } nvm_normalize_version() { - echo "${1#v}" | command awk -F. '{ command printf("%d%06d%06d\n", $1,$2,$3); }' + echo "${1#v}" | command awk -F. '{ printf("%d%06d%06d\n", $1,$2,$3); }' } nvm_ensure_version_prefix() {