chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / ffmpeg / install.sh
index fb0ef78d33f8602897ab8ba495dd7d1b994e52f6..fc1ef14f3e391174120c46d68f6662fc62978900 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
+set -e
+set -u
 
-{
-    set -e
-    set -u
+function __init_ffmpeg() {
 
     ##################
     # Install ffmpeg #
@@ -35,7 +35,9 @@
         #       ...
         # This trims it down to just the version number:
         #       4.3.1
-        echo $(ffmpeg -version 2>/dev/null | head -n 1 | cut -d ' ' -f 3)
+        echo $(ffmpeg -version 2> /dev/null | head -n 1 | cut -d ' ' -f 3)
     }
 
 }
+
+__init_ffmpeg