From 1ca2aa648fe867e68d50cfc664f0de27c7fbbbab Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 5 May 2016 23:53:13 -0700 Subject: [PATCH] [minor] Echo nonwritable file path to stderr. --- nvm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nvm.sh b/nvm.sh index 517356f..48fa1bf 100644 --- a/nvm.sh +++ b/nvm.sh @@ -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