chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / jq / install.sh
index a15919db85370110cd548eb44b430abd582ae7f5..0af4844a5af7f2a9865253aba5c74c50ac51b44e 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
+set -e
+set -u
 
-{
-    set -e
-    set -u
+function __init_jq() {
 
     ##############
     # Install jq #
@@ -18,3 +18,5 @@
         echo $(jq --version 2> /dev/null | head -n 1 | sed 's:^jq-::')
     }
 }
+
+__init_jq