Browse Source

`uninstall`: add `NVM_DEBUG` to print out a filename as its permissions are checked

Jordan Harband 5 years ago
parent
commit
096ba0d8c3
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
  1. 5
      nvm.sh

5
nvm.sh

@ -2327,7 +2327,10 @@ nvm_check_file_permissions() { @@ -2327,7 +2327,10 @@ nvm_check_file_permissions() {
nvm_is_zsh && setopt local_options nonomatch
for FILE in "$1"/* "$1"/.[!.]* "$1"/..?* ; do
if [ -d "$FILE" ]; then
if ! nvm_check_file_permissions "$FILE"; then
if [ -n "${NVM_DEBUG-}" ]; then
nvm_err "${FILE}"
fi
if ! nvm_check_file_permissions "${FILE}"; then
return 2
fi
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then

Loading…
Cancel
Save