Merge pull request #231 from miguelcoba/patch-1

Drop invalid -a flag for basename.
master
Tim Caswell 2013-05-09 15:02:22 -07:00
commit 367ae728fb
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -79,7 +79,7 @@ nvm_ls()
if [[ "$PATTERN" == v?*.?*.?* ]]; then if [[ "$PATTERN" == v?*.?*.?* ]]; then
VERSIONS="$PATTERN" VERSIONS="$PATTERN"
else else
VERSIONS=`nvm_set_nullglob; basename -a $NVM_DIR/v${PATTERN}* 2>/dev/null | sort -t. -k 1.2,1n -k 2,2n -k 3,3n` VERSIONS=`nvm_set_nullglob; basename $NVM_DIR/v${PATTERN}* 2>/dev/null | sort -t. -k 1.2,1n -k 2,2n -k 3,3n`
fi fi
if [ ! "$VERSIONS" ]; then if [ ! "$VERSIONS" ]; then
echo "N/A" echo "N/A"