[Fix] when not using `xz` on merged node versions, use `z` to extract, not `x`

Jordan Harband 2016-08-10 23:26:29 -07:00
parent 4aa6902dbe
commit 08cbcf2254
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 4 additions and 4 deletions

8
nvm.sh
View File

@ -1366,12 +1366,12 @@ nvm_install_merged_node_binary() {
local sum local sum
local NODE_PREFIX local NODE_PREFIX
local compression local compression
compression="gz" compression='gz'
local tar_compression_flag local tar_compression_flag
tar_compression_flag="x" tar_compression_flag='z'
if nvm_supports_xz "${VERSION}"; then if nvm_supports_xz "${VERSION}"; then
compression="xz" compression='xz'
tar_compression_flag="J" tar_compression_flag='J'
fi fi
NODE_PREFIX="$(nvm_node_prefix)" NODE_PREFIX="$(nvm_node_prefix)"