File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,14 @@ VERSION=$1
5
5
6
6
mkdir -p dist
7
7
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
9
9
os=$( echo " $osArch " | awk -F " _" ' {print $1;}' )
10
- arch=$( echo " $osArch " | awk -F " _" ' {print $2;}' )
11
10
zipFile=' kubectl-vm_' " $VERSION " ' _' " $osArch .zip"
12
11
downloadURL=" https://download.aerokube.com/boot/kubectl-vm/$VERSION /$zipFile "
13
- outputFile=' kubectl-vm_' " $os " ' _ ' " $arch "
12
+ outputFile=" kubectl-vm_$osArch "
14
13
if [ " $os " == " windows" ]; then
15
14
outputFile=" $outputFile .exe"
16
15
fi
17
- curl -s " $downloadURL " | zcat >> " $outputFile "
16
+ curl -s " $downloadURL " | zcat > " $outputFile "
18
17
chmod 755 " $outputFile "
19
18
done
You can’t perform that action at this time.
0 commit comments