cleanup: shfmt, shellcheck, and whitespace
[webi-installers/.git] / webi / install.sh
index 6531614baa1dfd9a2027b93165fcc197d190f351..0c26ab455d14dd16e89715e9e0b735f6e0060f48 100644 (file)
@@ -5,17 +5,17 @@
 
 {
 
-if [ -f "$HOME/.local/bin/webi" ]; then
-  set +e
-  cur_webi="$(command -v webi)"
-  set -e
-  if [ -z "$cur_webi" ]; then
-    webi_path_add "$HOME/.local/bin"
-  fi
-  echo "Installed 'webi'"
-else
-  # for when this file is run on its own, not from webinstall.dev
-  echo "Install any other package via https://webinstall.dev and webi will be installed as part of the bootstrap process"
-fi
+    if [ -f "$HOME/.local/bin/webi" ]; then
+        set +e
+        cur_webi="$(command -v webi)"
+        set -e
+        if [ -z "$cur_webi" ]; then
+            webi_path_add "$HOME/.local/bin"
+        fi
+        echo "Installed 'webi'"
+    else
+        # for when this file is run on its own, not from webinstall.dev
+        echo "Install any other package via https://webinstall.dev and webi will be installed as part of the bootstrap process"
+    fi
 
 }