Skip to content

Commit a8e90e1

Browse files
committed
Overwriting extracted file location
1 parent b810f2e commit a8e90e1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ci/extract.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ VERSION=$1
55

66
mkdir -p dist
77
cd dist
8-
for osArch in "linux/amd64" "darwin/amd64" "darwin/arm64" "windows/amd64"; do
8+
for osArch in "linux_amd64" "darwin_amd64" "darwin_arm64" "windows_amd64"; do
99
os=$(echo "$osArch" | awk -F "_" '{print $1;}')
10-
arch=$(echo "$osArch" | awk -F "_" '{print $2;}')
1110
zipFile='kubectl-vm_'"$VERSION"'_'"$osArch.zip"
1211
downloadURL="https://download.aerokube.com/boot/kubectl-vm/$VERSION/$zipFile"
13-
outputFile='kubectl-vm_'"$os"'_'"$arch"
12+
outputFile="kubectl-vm_$osArch"
1413
if [ "$os" == "windows" ]; then
1514
outputFile="$outputFile.exe"
1615
fi
17-
curl -s "$downloadURL" | zcat >> "$outputFile"
16+
curl -s "$downloadURL" | zcat > "$outputFile"
1817
chmod 755 "$outputFile"
1918
done

0 commit comments

Comments
 (0)