From 2ede79a59c2b45aeb897c9d436a08383418c083d Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Wed, 12 Oct 2022 23:37:28 +0100 Subject: [PATCH] fix: exit code and add kubectl --- instalee | 1 + packages/kubectl/linux | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 packages/kubectl/linux diff --git a/instalee b/instalee index 8c08a0e..bd2e570 100755 --- a/instalee +++ b/instalee @@ -70,6 +70,7 @@ installpkg() { destress " running unhandled $pkg_entry" $pkg_entry fi + set +e break done } diff --git a/packages/kubectl/linux b/packages/kubectl/linux new file mode 100755 index 0000000..86f6253 --- /dev/null +++ b/packages/kubectl/linux @@ -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