[minor] Echo nonwritable file path to stderr.

Jordan Harband 2016-05-05 23:53:13 -07:00
parent f49eb61f8e
commit 1ca2aa648f
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 1 additions and 0 deletions

1
nvm.sh
View File

@ -1664,6 +1664,7 @@ nvm_check_file_permissions() {
return 2
fi
elif [ -e "$FILE" ] && [ ! -w "$FILE" ]; then
nvm_err "file is not writable: $(nvm_sanitize_path "$FILE")"
return 1
fi
done