From 943393be33ad48fc3097a3467e68883143027abe Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 5 Jun 2022 21:37:49 +0800 Subject: [PATCH] fix: unzip package for windows --- scripts/install.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 89b28ee3..845a669b 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -91,8 +91,13 @@ function main() { echo echoInfo "Extracting..." - echo "$ tar -xzf $pkg" - tar -xzf "$pkg" + if [[ $os == windows ]]; then # windows + echo "$ unzip -o $pkg -d ." + unzip -o $pkg -d . + else + echo "$ tar -xzf $pkg" + tar -xzf "$pkg" + fi echo "$ ls -lh" ls -lh echo