bugfix(misc): fix kind, gprox, myip, pandoc
[webi-installers/.git] / bat / install.sh
index 6ae91541de66cc83d69691534d65893ffe6b5831..004dea2c088190d668a5cb5895c885bb76ff6969 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_bat() {
     set -e
     set -u
 
     WEBI_SINGLE=true
 
     pkg_get_current_version() {
-      # 'bat --version' has output in this format:
-      #       bat 0.15.4
-      # This trims it down to just the version number:
-      #       0.15.4
-      echo $(bat --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+        # 'bat --version' has output in this format:
+        #       bat 0.15.4
+        # This trims it down to just the version number:
+        #       0.15.4
+        echo $(bat --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
     }
 
     pkg_install() {
@@ -29,3 +29,5 @@
         chmod a+x "$pkg_src_cmd"
     }
 }
+
+__init_bat