Fix normal install without arguments
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user