chore(style): convert blocks into functions (see #325)
[webi-installers/.git] / xz / install.sh
index 7ff18a569336438a3dd4e54004ec079474cb9d08..390ea1d0c6f1ca9cf36d4f4e82a65f0c60cb557e 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_xz() {
     set -e
     set -u
 
@@ -45,3 +45,5 @@
         echo $(xz --version 2> /dev/null | head -n 1 | cut -d ' ' -f 4)
     }
 }
+
+__init_xz