Skip to content

Commit 3a5805e

Browse files
committedOct 22, 2024··
chore: Check tar is installed install script
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
1 parent 0b68393 commit 3a5805e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎scripts/get-helm-3

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)"
3030
HAS_OPENSSL="$(type "openssl" &> /dev/null && echo true || echo false)"
3131
HAS_GPG="$(type "gpg" &> /dev/null && echo true || echo false)"
3232
HAS_GIT="$(type "git" &> /dev/null && echo true || echo false)"
33+
HAS_TAR="$(type "tar" &> /dev/null && echo true || echo false)"
3334

3435
# initArch discovers the architecture for this system.
3536
initArch() {
@@ -102,6 +103,11 @@ verifySupported() {
102103
if [ "${HAS_GIT}" != "true" ]; then
103104
echo "[WARNING] Could not find git. It is required for plugin installation."
104105
fi
106+
107+
if [ "${HAS_TAR}" != "true" ]; then
108+
echo "[ERROR] Could not find tar. It is required to extract the helm binary archive."
109+
exit 1
110+
fi
105111
}
106112

107113
# checkDesiredVersion checks if the desired version is available.

0 commit comments

Comments
 (0)
Please sign in to comment.