refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / comrak / install.sh
index 8e503524c2f747f3d76eeb624f0068d5209dc519..4e2bfb67e864f730c444459139b17ff0a6831a78 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_comrak() {
     set -e
     set -u
 
     WEBI_SINGLE=true
 
     pkg_get_current_version() {
-      # 'comrak --version' has output in this format:
-      #       comrak 0.8.1
-      # This trims it down to just the version number:
-      #       0.8.1
-      echo $(comrak --version 2>/dev/null | head -n 1 | cut -d' ' -f 2)
+        # 'comrak --version' has output in this format:
+        #       comrak 0.8.1
+        # This trims it down to just the version number:
+        #       0.8.1
+        echo $(comrak --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
     }
 
     pkg_install() {
@@ -34,3 +34,5 @@
         "$pkg_src_cmd" --version > /dev/null
     }
 }
+
+__init_comrak