From 75663b3108dd2986df64591b8aa2ac5ee3744690 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Wed, 7 Apr 2021 10:02:19 +0200 Subject: [PATCH] Fix -c starting step 1 with -qq if no configuration is available --- sequencer/sequencer.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sequencer/sequencer.sh b/sequencer/sequencer.sh index b407405..09fbbea 100755 --- a/sequencer/sequencer.sh +++ b/sequencer/sequencer.sh @@ -9,7 +9,7 @@ VERSION_REV=13 VERSION_MAJOR=0 -VERSION_MINOR=0 +VERSION_MINOR=1 ## Start of generic script part @@ -254,7 +254,7 @@ fi echoseq() { [ $QUIET -ne 2 ] && echo "$@"; } # Echo to stderr -echoerr() { >&2 echo "$@"; } +echoerr() { outColor red; >&2 echo "$@"; outColor none; } # outColor [BACKGROUND COLOR] outColor() { @@ -1140,6 +1140,9 @@ main() { else return 1 fi + elif [ $SEQ_CONFIG_EDIT -ne 0 ] ; then + echoerr " [E] Sequence does not have a configuration file" + return 1 fi # check if more than one step is given and select execution mode