Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #468 from egilkh/master
Browse files Browse the repository at this point in the history
Should escape grep in nvm_ls
  • Loading branch information
ljharb committed Jul 12, 2014
2 parents f1b8cf8 + 0534872 commit c49cb68
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 c49cb68

Please sign in to comment.