Skip to content

Commit 096ba0d

Browse files
committed
uninstall: add NVM_DEBUG to print out a filename as its permissions are checked
1 parent 4626d1a commit 096ba0d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nvm.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2327,7 +2327,10 @@ nvm_check_file_permissions() {
23272327
nvm_is_zsh && setopt local_options nonomatch
23282328
for FILE in "$1"/* "$1"/.[!.]* "$1"/..?* ; do
23292329
if [ -d "$FILE" ]; then
2330-
if ! nvm_check_file_permissions "$FILE"; then
2330+
if [ -n "${NVM_DEBUG-}" ]; then
2331+
nvm_err "${FILE}"
2332+
fi
2333+
if ! nvm_check_file_permissions "${FILE}"; then
23312334
return 2
23322335
fi
23332336
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then

0 commit comments

Comments
 (0)