Browse files

Merge pull request #468 from egilkh/master

Should escape grep in nvm_ls
  • Loading branch information...
2 parents f1b8cf8 + 0534872 commit c49cb68575983e6dda8770398c8eb8c5b8f24337 @ljharb ljharb 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 c49cb68

Please sign in to comment.