projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git]
/
k9s
/
install.sh
diff --git
a/k9s/install.sh
b/k9s/install.sh
index 62a050ed99a88e20e4d3be1e4a1d7edf6423e205..78345044e5d58de63822a48675f48bbbfcfb85f3 100644
(file)
--- a/
k9s/install.sh
+++ b/
k9s/install.sh
@@
-1,8
+1,8
@@
#!/bin/bash
#!/bin/bash
+set -e
+set -u
-{
- set -e
- set -u
+function __init_k9s() {
##################
# Install k9s #
##################
# Install k9s #
@@
-37,7
+37,9
@@
# This trims it down to just the version number:
# 0.24.2
# 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