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