bugfix(Windows): make sure ~/Downloads exists
[webi-installers/.git] / _example / install.sh
index 6ae2b2ec7ac1b1bda5d424af6ef35bf74abf0943..07e9694bdb68f74d5abaaf06c51ce405943264df 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-{
+function __init_foobar() {
     set -e
     set -u
 
@@ -33,7 +33,9 @@
         #       foobar 0.99.9 (rev abcdef0123)
         # This trims it down to just the version number:
         #       0.99.9
-        echo $(foo --version 2>/dev/null | head -n 1 | cut -d ' ' -f 2)
+        echo $(foo --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
     }
 
 }
+
+__init_foobar