mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-13 04:43:04 +00:00
Compare commits
No commits in common. "69075e99b0e4b43d31c2fe5360089f308d9cb6b0" and "9602f4f959a9f64515fc13af2904a87dc03de685" have entirely different histories.
69075e99b0
...
9602f4f959
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -17,7 +17,6 @@ jobs:
|
|||||||
api.github.com:443
|
api.github.com:443
|
||||||
objects.githubusercontent.com:443
|
objects.githubusercontent.com:443
|
||||||
raw.githubusercontent.com:443
|
raw.githubusercontent.com:443
|
||||||
release-assets.githubusercontent.com:443
|
|
||||||
registry.npmjs.org:443
|
registry.npmjs.org:443
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
20
.github/workflows/windows-npm.yml
vendored
20
.github/workflows/windows-npm.yml
vendored
@ -133,16 +133,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: ${{ matrix.wsl-distrib }}
|
distribution: ${{ matrix.wsl-distrib }}
|
||||||
additional-packages: bash git curl ca-certificates wget
|
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
|
- name: Retrieve nvm on WSL
|
||||||
run: |
|
run: |
|
||||||
if [ -z "${{ matrix.method }}" ]; then
|
if [ -z "${{ matrix.method }}" ]; then
|
||||||
@ -186,16 +176,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: ${{ matrix.wsl-distrib }}
|
distribution: ${{ matrix.wsl-distrib }}
|
||||||
additional-packages: bash git curl ca-certificates wget
|
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
|
- name: Retrieve nvm on WSL
|
||||||
run: |
|
run: |
|
||||||
if [ -z "${{ matrix.method }}" ]; then
|
if [ -z "${{ matrix.method }}" ]; then
|
||||||
|
3
nvm.sh
3
nvm.sh
@ -2985,8 +2985,7 @@ nvm_check_file_permissions() {
|
|||||||
if [ ! -L "${FILE}" ] && ! nvm_check_file_permissions "${FILE}"; then
|
if [ ! -L "${FILE}" ] && ! nvm_check_file_permissions "${FILE}"; then
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ -z "$(command find "${FILE}" -prune -user "$(command id -u)")" ]; then
|
elif [ -e "$FILE" ] && [ ! -w "$FILE" ] && [ ! -O "$FILE" ]; then
|
||||||
# ^ file ownership check from https://www.shellcheck.net/wiki/SC3067
|
|
||||||
nvm_err "file is not writable or self-owned: $(nvm_sanitize_path "$FILE")"
|
nvm_err "file is not writable or self-owned: $(nvm_sanitize_path "$FILE")"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user