chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / bat / install.sh
index b6f812eae54acd528cc0d82a6a22fadf3ed68b17..142efda05218672e5771efa026b8006523013051 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
+set -e
+set -u
 
-{
-    set -e
-    set -u
+function __init_bat() {
 
     ###############
     # Install bat #
@@ -29,3 +29,5 @@
         chmod a+x "$pkg_src_cmd"
     }
 }
+
+__init_bat