Skip to content

Commit 00d2083

Browse files
author
Massimiliano Pippi
authored
[ci skip] use unzip on Windows (arduino#498)
1 parent b544181 commit 00d2083

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ downloadFile() {
153153
installFile() {
154154
CLI_TMP="/tmp/$PROJECT_NAME"
155155
mkdir -p "$CLI_TMP"
156-
tar xf "$CLI_TMP_FILE" -C "$CLI_TMP"
156+
if [ "$OS" = "Windows" ]; then
157+
unzip -d "$CLI_TMP" "$CLI_TMP_FILE"
158+
else
159+
tar xf "$CLI_TMP_FILE" -C "$CLI_TMP"
160+
fi
157161
CLI_TMP_BIN="$CLI_TMP/$PROJECT_NAME"
158162
cp "$CLI_TMP_BIN" "$LBINDIR"
159163
rm -rf $CLI_TMP

0 commit comments

Comments
 (0)