refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / k9s / install.sh
index 62a050ed99a88e20e4d3be1e4a1d7edf6423e205..158316cc8b6269f086c655e0bf2ee7b79ee3284a 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_k9s() {
     set -e
     set -u
 
@@ -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