mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-16 10:43:42 +00:00
Compare commits
4 Commits
44a08d87ea
...
0ef2bcd497
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0ef2bcd497 | ||
![]() |
762f9ef9d1 | ||
![]() |
5f7d419458 | ||
![]() |
b42c165667 |
@ -32,7 +32,7 @@ before_install:
|
||||
- zsh --version
|
||||
- dpkg -s dash | grep ^Version | awk '{print $2}'
|
||||
# install python
|
||||
- pyenv install 2.7.18
|
||||
- pyenv local 2.7.18 || pyenv install 2.7.18
|
||||
- pyenv local 2.7.18 || echo 'pyenv failed'
|
||||
- python -V
|
||||
install:
|
||||
|
6
nvm.sh
6
nvm.sh
@ -4447,7 +4447,11 @@ nvm_supports_xz() {
|
||||
if [ "_${NVM_OS}" = '_darwin' ]; then
|
||||
local MACOS_VERSION
|
||||
MACOS_VERSION="$(sw_vers -productVersion)"
|
||||
if nvm_version_greater "10.9.0" "${MACOS_VERSION}"; then
|
||||
if tar --version | command grep -q GNU && ! command which xz >/dev/null 2>&1; then
|
||||
# On macOS with GNU tar in use, and no xv on the path, xv-compressed
|
||||
# tarballs aren't supported
|
||||
return 1
|
||||
elif nvm_version_greater "10.9.0" "${MACOS_VERSION}"; then
|
||||
# macOS 10.8 and earlier doesn't support extracting xz-compressed tarballs with tar
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user