From 08cbcf2254c3d213c61b857d21e12288980fd845 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 10 Aug 2016 23:26:29 -0700 Subject: [PATCH] [Fix] when not using `xz` on merged node versions, use `z` to extract, not `x` --- nvm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nvm.sh b/nvm.sh index be9f14a..7310c0b 100644 --- a/nvm.sh +++ b/nvm.sh @@ -1366,12 +1366,12 @@ nvm_install_merged_node_binary() { local sum local NODE_PREFIX local compression - compression="gz" + compression='gz' local tar_compression_flag - tar_compression_flag="x" + tar_compression_flag='z' if nvm_supports_xz "${VERSION}"; then - compression="xz" - tar_compression_flag="J" + compression='xz' + tar_compression_flag='J' fi NODE_PREFIX="$(nvm_node_prefix)"