Jordan Harband 2015-10-12 16:05:55 -07:00
parent bf284203cb
commit 9407f850f1
1 changed files with 2 additions and 2 deletions

4
nvm.sh
View File

@ -137,7 +137,7 @@ nvm_rc_version() {
local NVMRC_PATH local NVMRC_PATH
NVMRC_PATH="$(nvm_find_nvmrc)" NVMRC_PATH="$(nvm_find_nvmrc)"
if [ -e "$NVMRC_PATH" ]; then if [ -e "$NVMRC_PATH" ]; then
read NVM_RC_VERSION < "$NVMRC_PATH" read -r NVM_RC_VERSION < "$NVMRC_PATH"
echo "Found '$NVMRC_PATH' with version <$NVM_RC_VERSION>" echo "Found '$NVMRC_PATH' with version <$NVM_RC_VERSION>"
else else
>&2 echo "No .nvmrc file found" >&2 echo "No .nvmrc file found"
@ -764,7 +764,7 @@ nvm_print_versions() {
local FORMAT local FORMAT
local NVM_CURRENT local NVM_CURRENT
NVM_CURRENT=$(nvm_ls_current) NVM_CURRENT=$(nvm_ls_current)
echo "$1" | while read VERSION; do echo "$1" | while read -r VERSION; do
if [ "_$VERSION" = "_$NVM_CURRENT" ]; then if [ "_$VERSION" = "_$NVM_CURRENT" ]; then
FORMAT='\033[0;32m-> %12s\033[0m' FORMAT='\033[0;32m-> %12s\033[0m'
elif [ "$VERSION" = "system" ]; then elif [ "$VERSION" = "system" ]; then