chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / fd / install.sh
index 50af4761cb6edbacc3c79711db8960f6ab4cc49e..85ef0b26e405eb7687658d35cd00ce897a51bd43 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
+set -e
+set -u
 
-{
-    set -e
-    set -u
+function __init_fd() {
 
     ###############
     # Install fd #
@@ -29,3 +29,5 @@
         chmod a+x "$pkg_src_cmd"
     }
 }
+
+__init_fd