[New] maybe support Windows with WSL, MSYS, Cygwin

This commit is contained in:
nmarghetti
2021-01-02 00:03:24 +01:00
committed by Jordan Harband
parent d118be8fd4
commit f2582275f6
6 changed files with 186 additions and 21 deletions

View File

@@ -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