chore(style): convert blocks into functions (see #325)
[webi-installers/.git] / xz / install.sh
index 54beb4c12fb1c4cf5bcbe3ec6873118eb05e0416..390ea1d0c6f1ca9cf36d4f4e82a65f0c60cb557e 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_xz() {
     set -e
     set -u
 
@@ -42,6 +42,8 @@
         #       liblzma 5.2.5
         # This trims it down to just the version number:
         #       5.2.5
-        echo $(xz --version 2>/dev/null | head -n 1 | cut -d ' ' -f 4)
+        echo $(xz --version 2> /dev/null | head -n 1 | cut -d ' ' -f 4)
     }
 }
+
+__init_xz