Merge pull request #468 from egilkh/master

Should escape grep in nvm_ls
master
Jordan Harband 2014-07-12 11:02:09 -07:00
commit c49cb68575
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -159,7 +159,7 @@ nvm_ls() {
fi fi
else else
VERSIONS=`find "$NVM_DIR/" -maxdepth 1 -type d -name "$(nvm_format_version $PATTERN)*" -exec basename '{}' ';' \ 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 fi
if [ -z "$VERSIONS" ]; then if [ -z "$VERSIONS" ]; then
echo "N/A" echo "N/A"