mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-22 16:24:51 +00:00
[New] maybe support Windows with WSL, MSYS, Cygwin
This commit is contained in:

committed by
Jordan Harband

parent
d118be8fd4
commit
f2582275f6
@@ -13,4 +13,10 @@ die () { echo "$@" ; cleanup ; exit 1; }
|
||||
# nvm_get_artifact_compression with xz
|
||||
[ "$(nvm_get_artifact_compression "14.0.0")" = 'tar.xz' ] || die 'nvm_get_artifact_compression should return "tar.xz" for this version'
|
||||
|
||||
# nvm_get_artifact_compression with zip on Windows
|
||||
nvm_get_os() {
|
||||
nvm_echo 'win'
|
||||
}
|
||||
[ "$(nvm_get_artifact_compression)" = 'zip' ] || die 'nvm_get_artifact_compression should return "zip" for Windows'
|
||||
|
||||
cleanup
|
||||
|
Reference in New Issue
Block a user