Permalink
Browse files

Should escape grep in nvm_ls

  • Loading branch information...
1 parent f1b8cf8 commit 0534872e0f5f3451f7aca45fc0c957fc49424a6b @egilkh egilkh committed Jul 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 nvm.sh
View
2 nvm.sh
@@ -159,7 +159,7 @@ nvm_ls() {
fi
else
VERSIONS=`find "$NVM_DIR/" -maxdepth 1 -type d -name "$(nvm_format_version $PATTERN)*" -exec basename '{}' ';' \
- | sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n | grep -v '^ *\.'`
+ | sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n | \grep -v '^ *\.'`
fi
if [ -z "$VERSIONS" ]; then
echo "N/A"

0 comments on commit 0534872

Please sign in to comment.