chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / pandoc / install.sh
index b69a5857e9780032e38866cfc08b57ed696ba420..f3b59c0331f2234586d7a84ba4f3700452df3fb3 100644 (file)
@@ -1,6 +1,8 @@
-{
-    set -e
-    set -u
+#!/bin/bash
+set -e
+set -u
+
+function __init_pandoc() {
 
     ###################
     # Install pandoc #
@@ -38,6 +40,8 @@
         # for a particular purpose.
         # This trims it down to just the version number:
         #       2.10.1
-      echo $(pandoc --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
+        echo $(pandoc --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
     }
 }
+
+__init_pandoc