Revert "Bash scripts; use double brackets, fix bare variables, add quotes"

This reverts commit 297b30df5f.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2019-01-10 02:23:38 +01:00
parent 3f2ecb5452
commit c3650770cc
43 changed files with 144 additions and 143 deletions

View File

@@ -9,7 +9,7 @@ TMP_GOPATH=${TMP_GOPATH:-""}
: ${PREFIX:="/usr/local/bin"}
if [[ -z "$TMP_GOPATH" ]]; then
if [ -z "$TMP_GOPATH" ]; then
export GOPATH="$(mktemp -d)"
RM_GOPATH=1
else
@@ -21,10 +21,10 @@ dir="$(dirname $0)"
bin=$1
shift
if [[ ! -f "${dir}/${bin}.installer" ]]; then
if [ ! -f "${dir}/${bin}.installer" ]; then
echo "Could not find installer for \"$bin\""
exit 1
fi
. ${dir}/${bin}.installer
install_${bin} "$@"
. $dir/$bin.installer
install_$bin "$@"