chore(style): convert blocks into functions (see #325)
[webi-installers/.git] / sudo / install.sh
index 4724b3dc911bcadab365168c4e16b59953070bc8..679c86b9a85c361b0894f82740998a4b01038041 100644 (file)
@@ -1,7 +1,9 @@
+#!/bin/bash
+
 set -e
 set -u
 
-{
+function __init_sudo() {
 
     if [ -z "$(command -v sudo)" ]; then
         echo >&2 "Error: on Linux and BSD you should install sudo via the native package manager"
@@ -12,3 +14,5 @@ set -u
     fi
 
 }
+
+__init_sudo