`uninstall`: add `NVM_DEBUG` to print out a filename as its permissions are checked
parent
4626d1aae6
commit
096ba0d8c3
5
nvm.sh
5
nvm.sh
|
@ -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…
Reference in New Issue