fix: exit code and add kubectl

This commit is contained in:
xeruf 2022-10-12 23:37:28 +01:00
parent c87ee60274
commit 2ede79a59c
2 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,7 @@ installpkg() {
destress " running unhandled $pkg_entry" destress " running unhandled $pkg_entry"
$pkg_entry $pkg_entry
fi fi
set +e
break break
done done
} }

5
packages/kubectl/linux Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh -e
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl