Merge branch 'master' into issue3034

This commit is contained in:
tim-mit 2023-08-27 19:10:32 +12:00 committed by GitHub
commit 5f7d419458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
nvm.sh
View File

@ -2784,7 +2784,7 @@ nvm_check_file_permissions() {
if [ -n "${NVM_DEBUG-}" ]; then
nvm_err "${FILE}"
fi
if ! nvm_check_file_permissions "${FILE}"; then
if [ ! -L "${FILE}" ] && ! nvm_check_file_permissions "${FILE}"; then
return 2
fi
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then