refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / jq / install.sh
index 1bb6cf0cbef53c8c0b2799ff7f7cde1de7485232..205ea1bb3956ff44fbf56ed276a998278e39d4b9 100644 (file)
@@ -1,4 +1,6 @@
-{
+#!/bin/bash
+
+function __init_jq() {
     set -e
     set -u
 
     WEBI_SINGLE=true
 
     pkg_get_current_version() {
-      # 'jq --version' has output in this format:
-      #       jq-1.6
-      # This trims it down to just the version number:
-      #       1.6
-      echo $(jq --version 2>/dev/null | head -n 1 | sed 's:^jq-::')
+        # 'jq --version' has output in this format:
+        #       jq-1.6
+        # This trims it down to just the version number:
+        #       1.6
+        echo $(jq --version 2> /dev/null | head -n 1 | sed 's:^jq-::')
     }
 }
+
+__init_jq