This commit is contained in:
JustArchi 2018-05-13 20:43:22 +02:00
parent 1857fec906
commit a7df090225

10
run.sh
View file

@ -14,9 +14,15 @@ PARSE_ARG() {
BINARY_ARGS+=("$1")
case "$1" in
--cryptkey|--server|--service) ;;
--path) PATH_NEXT=1 ;;
--path=*) cd "$(echo "$1" | cut -d '=' -f 2-)" ;;
--path=*)
if [[ "$PATH_NEXT" -eq 1 ]]; then
PATH_NEXT=0
cd "$1"
else
cd "$(echo "$1" | cut -d '=' -f 2-)"
fi
;;
*)
if [[ "$PATH_NEXT" -eq 1 ]]; then
PATH_NEXT=0