When there's no `nvm run` output, don't echo an empty line.

master
Jordan Harband 2015-02-01 12:45:51 -08:00
parent 0792945824
commit 8a87133f71
1 changed files with 3 additions and 1 deletions

2
nvm.sh
View File

@ -1284,7 +1284,9 @@ nvm() {
fi fi
local EXIT_CODE local EXIT_CODE
EXIT_CODE="$?" EXIT_CODE="$?"
if [ -n "$OUTPUT" ]; then
echo "$OUTPUT" echo "$OUTPUT"
fi
return $EXIT_CODE return $EXIT_CODE
;; ;;
"exec" ) "exec" )