Skip to content

Commit

Permalink
Should escape grep in nvm_ls
Browse files Browse the repository at this point in the history
  • Loading branch information
egilkh committed Jul 12, 2014
1 parent f1b8cf8 commit 0534872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 0534872

Please sign in to comment.