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=
|
SEQUENCER_DIR=
|
||||||
|
|
||||||
# Get script working directory
|
# 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"
|
SEQUENCER_DIR="$1"
|
||||||
|
|
||||||
# Installation directory was not set by argument -d
|
# Installation directory was not set by argument -d
|
||||||
if [ -z "$SEQUENCER_DIR" ]; then
|
if [ -z "$SEQUENCER_DIR" ]; then
|
||||||
# Fallback to working directory
|
# Fallback to working directory
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
SEQUENCER_DIR="${WDIR}"
|
SEQUENCER_DIR="${WDIR}"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $SEQUENCER_DIR
|
echo $SEQUENCER_DIR
|
||||||
|
Reference in New Issue
Block a user