From cf52eb3187e0b2535d24fa4930d65acf79f0e038 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 13 Mar 2022 07:07:26 +0100 Subject: [PATCH] Fix normal install without arguments --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 23804f5..be59d68 100755 --- a/install.sh +++ b/install.sh @@ -4,16 +4,14 @@ SEQGITURL="https://winklerfamilie.eu/git/efelon/shell_sequencer.git" SEQUENCER_DIR= # Get script working directory -WDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >>/dev/null 2>&1 && pwd)" +WDIR="$(cd "$(dirname -- "$(realpath ${BASH_SOURCE[0]})")" >>/dev/null 2>&1 && pwd)" SEQUENCER_DIR="$1" # Installation directory was not set by argument -d if [ -z "$SEQUENCER_DIR" ]; then # Fallback to working directory - if [ $? -ne 0 ]; then - SEQUENCER_DIR="${WDIR}" - fi + SEQUENCER_DIR="${WDIR}" fi echo $SEQUENCER_DIR