mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-06 04:30:14 +00:00
Compare commits
4 Commits
a1cf5073ed
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
69075e99b0 | ||
![]() |
5c15110981 | ||
![]() |
3fa9d53dc6 | ||
![]() |
f9e254e647 |
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -17,6 +17,7 @@ jobs:
|
||||
api.github.com:443
|
||||
objects.githubusercontent.com:443
|
||||
raw.githubusercontent.com:443
|
||||
release-assets.githubusercontent.com:443
|
||||
registry.npmjs.org:443
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
20
.github/workflows/windows-npm.yml
vendored
20
.github/workflows/windows-npm.yml
vendored
@@ -133,6 +133,16 @@ jobs:
|
||||
with:
|
||||
distribution: ${{ matrix.wsl-distrib }}
|
||||
additional-packages: bash git curl ca-certificates wget
|
||||
|
||||
# see https://github.com/Vampire/setup-wsl/issues/76#issuecomment-3258201135
|
||||
- shell: 'wsl-bash {0}'
|
||||
run: 'sed -i s/ftp.debian.org/archive.debian.org/'
|
||||
- uses: Vampire/setup-wsl@v3
|
||||
with:
|
||||
distribution: ${{ matrix.wsl-distrib }}
|
||||
additional-packages: bash git curl ca-certificates wget
|
||||
update: 'true'
|
||||
|
||||
- name: Retrieve nvm on WSL
|
||||
run: |
|
||||
if [ -z "${{ matrix.method }}" ]; then
|
||||
@@ -176,6 +186,16 @@ jobs:
|
||||
with:
|
||||
distribution: ${{ matrix.wsl-distrib }}
|
||||
additional-packages: bash git curl ca-certificates wget
|
||||
|
||||
# see https://github.com/Vampire/setup-wsl/issues/76#issuecomment-3258201135
|
||||
- shell: 'wsl-bash {0}'
|
||||
run: 'sed -i s/ftp.debian.org/archive.debian.org/'
|
||||
- uses: Vampire/setup-wsl@v3
|
||||
with:
|
||||
distribution: ${{ matrix.wsl-distrib }}
|
||||
additional-packages: bash git curl ca-certificates wget
|
||||
update: 'true'
|
||||
|
||||
- name: Retrieve nvm on WSL
|
||||
run: |
|
||||
if [ -z "${{ matrix.method }}" ]; then
|
||||
|
3
nvm.sh
3
nvm.sh
@@ -2985,7 +2985,8 @@ nvm_check_file_permissions() {
|
||||
if [ ! -L "${FILE}" ] && ! nvm_check_file_permissions "${FILE}"; then
|
||||
return 2
|
||||
fi
|
||||
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then
|
||||
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ -z "$(command find "${FILE}" -prune -user "$(command id -u)")" ]; then
|
||||
# ^ file ownership check from https://www.shellcheck.net/wiki/SC3067
|
||||
nvm_err "file is not writable or self-owned: $(nvm_sanitize_path "$FILE")"
|
||||
return 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user