chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / xz / install.sh
index 7ff18a569336438a3dd4e54004ec079474cb9d08..d57116010fd8effcbcaceef9762dbda3e523f147 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
+set -e
+set -u
 
-{
-    set -e
-    set -u
+function __init_xz() {
 
     ##############
     # Install xz #
@@ -45,3 +45,5 @@
         echo $(xz --version 2> /dev/null | head -n 1 | cut -d ' ' -f 4)
     }
 }
+
+__init_xz