From f46b00c896216b4273d01a040a76a6e773b8c572 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Tue, 2 Nov 2021 14:58:20 +0100 Subject: [PATCH] install: Fix for sh instead of bash. --- _install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_install.sh b/_install.sh index 796f153..ae0ec35 100755 --- a/_install.sh +++ b/_install.sh @@ -1,8 +1,12 @@ #!/bin/sh SOURCE=$(dirname $0) -[[ -e "$SOURCE/dbash" ]] || { echo "Please cd to the directory containing this file and try to run _install.sh again." ; exit 1; } -TARGET=/usr/local/bin +TARGET="/usr/local/bin" + +if [ ! -e "$SOURCE/dbash" ]; then + echo "Please cd to the directory containing this file and try to run _install.sh again." + exit 1 +fi ln -sf "$SOURCE/dbash" "$TARGET/dbash" ln -sf "$SOURCE/dhelp" "$TARGET/dhelp"