chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / arc / install.sh
index 4d983ee34fcd1c19a6463c8f5bd4e0a15585d341..81105b4b6fa987577f65fe991cf6c932133d53cd 100644 (file)
@@ -1,6 +1,8 @@
-{
-    set -e
-    set -u
+#!/bin/bash
+set -e
+set -u
+
+function __init_arc() {
 
     ####################
     # Install archiver #
@@ -34,3 +36,5 @@
         echo "$(arc version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
     }
 }
+
+__init_arc