X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=k9s%2Finstall.sh;h=78345044e5d58de63822a48675f48bbbfcfb85f3;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=62a050ed99a88e20e4d3be1e4a1d7edf6423e205;hpb=76cb2a63467a216a7dcf1ab4a3b13b0e0d7e3993;p=webi-installers%2F.git diff --git a/k9s/install.sh b/k9s/install.sh index 62a050e..7834504 100644 --- a/k9s/install.sh +++ b/k9s/install.sh @@ -1,8 +1,8 @@ #!/bin/bash +set -e +set -u -{ - set -e - set -u +function __init_k9s() { ################## # Install k9s # @@ -37,7 +37,9 @@ # This trims it down to just the version number: # 0.24.2 - echo $(k9s version 2>/dev/null | grep Version: | cut -d 'v' -f 2) + echo $(k9s version 2> /dev/null | grep Version: | cut -d 'v' -f 2) } } + +__init_k9s