mirror of
https://github.com/helm/helm.git
synced 2026-04-22 14:47:41 -04:00
chore: Check tar is installed install script
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
parent
0b68393d5e
commit
3a5805ea7e
1 changed files with 6 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ HAS_WGET="$(type "wget" &> /dev/null && echo true || echo false)"
|
|||
HAS_OPENSSL="$(type "openssl" &> /dev/null && echo true || echo false)"
|
||||
HAS_GPG="$(type "gpg" &> /dev/null && echo true || echo false)"
|
||||
HAS_GIT="$(type "git" &> /dev/null && echo true || echo false)"
|
||||
HAS_TAR="$(type "tar" &> /dev/null && echo true || echo false)"
|
||||
|
||||
# initArch discovers the architecture for this system.
|
||||
initArch() {
|
||||
|
|
@ -102,6 +103,11 @@ verifySupported() {
|
|||
if [ "${HAS_GIT}" != "true" ]; then
|
||||
echo "[WARNING] Could not find git. It is required for plugin installation."
|
||||
fi
|
||||
|
||||
if [ "${HAS_TAR}" != "true" ]; then
|
||||
echo "[ERROR] Could not find tar. It is required to extract the helm binary archive."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# checkDesiredVersion checks if the desired version is available.
|
||||
|
|
|
|||
Loading…
Reference in a new issue