bugfix(misc): fix kind, gprox, myip, pandoc
[webi-installers/.git] / gprox / install.sh
index 103216541fb38e890c78eb459d43d2542239e0b1..196c2405766b9fcf658d392f6b2dac9c53240272 100644 (file)
@@ -1,8 +1,8 @@
 #!/bin/bash
+set -e
+set -u
 
 function __init_gprox() {
-    set -e
-    set -u
 
     ##################
     # Install gprox #
@@ -18,13 +18,17 @@ function __init_gprox() {
     pkg_src_dir="$HOME/.local/opt/gprox-v$WEBI_VERSION"
     pkg_src="$pkg_src_cmd"
 
+    WEBI_SINGLE=true
+
     # pkg_get_current_version is recommended, but (soon) not required
     pkg_get_current_version() {
         # 'gprox --version' has output in this format:
         #       gprox 0.99.9 (rev abcdef0123)
         # This trims it down to just the version number:
         #       0.99.9
-        echo $(gprox --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
+        gprox --version 2> /dev/null |
+            head -n 1 |
+            cut -d ' ' -f 2
     }
 }