Skip to content

Commit 26ad0a7

Browse files
Update update_cli.sh
1 parent 74573bd commit 26ad0a7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/scripts/update_cli.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
#!/bin/bash
22

33
release=$1
4-
filename_windows=ast-cli_${release}_windows_x64.tar.gz
4+
filename_windows=ast-cli_${release}_windows_x64.zip
55
filename_linux=ast-cli_${release}_linux_x64.tar.gz
6-
filename_darwin=ast-cli_${release}_darwin_amd64.tar.gz
6+
filename_darwin=ast-cli_${release}_darwin_x64.tar.gz
77

88
#Windows
99
echo "Updating windows binary"
1010
wget https://github.com/checkmarx/ast-cli/releases/download/${release}/${filename_windows}
11-
mkdir ./tmp/
12-
tar -xvzf ${filename_windows} -C ./tmp/
11+
unzip ${filename_windows} -d tmp
1312
mv ./tmp/cx.exe ./src/main/resources/cx.exe
1413
rm -r tmp
1514
rm ${filename_windows}
@@ -18,7 +17,7 @@ rm ${filename_windows}
1817
echo "Updating linux binary"
1918
wget https://github.com/checkmarx/ast-cli/releases/download/${release}/${filename_linux}
2019
mkdir ./tmp/
21-
tar -xvzf ${filename_linux} -C ./tmp/
20+
tar -xvzf ${filename_linux} -C ./tmp/
2221
mv ./tmp/cx ./src/main/resources/cx-linux
2322
rm -r tmp
2423
rm ${filename_linux}

0 commit comments

Comments
 (0)