X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=gprox%2Finstall.sh;h=196c2405766b9fcf658d392f6b2dac9c53240272;hp=103216541fb38e890c78eb459d43d2542239e0b1;hb=b1d3b44f966332434d8ec49b2a0df569e9bf8c16;hpb=e9c3b79c56ddb4ac2f94edd43f971e967845148c diff --git a/gprox/install.sh b/gprox/install.sh index 1032165..196c240 100644 --- a/gprox/install.sh +++ b/gprox/install.sh @@ -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 } }