Skip to content
Snippets Groups Projects
Commit 56fedfe0 authored by Erik von Reis's avatar Erik von Reis
Browse files

rtcds: changed FORCED_START_FLAG to work the way other command line flags work

parent 63aebf2a
No related branches found
No related tags found
1 merge request!195Rtcds check model
......@@ -55,6 +55,10 @@ while (( "$#" )); do
HELP_FLAG=0
shift
;;
--force-start)
FORCE_START_FLAG=0
shift
;;
--*|-*) # unknown flags
log "Error: Unknown flag $1"
exit 1
......@@ -212,9 +216,7 @@ list_host_sys() {
# returns 0 if $1 names a system that's designated to run
# on this host
check_sys_in_host() {
echo "CHECK_MODEL_IN_HOST=$CHECK_MODEL_IN_HOST"
echo "force_start=$force_start"
if $CHECK_MODEL_IN_HOST && ! $force_start ; then
if $CHECK_MODEL_IN_HOST && ! [[ $FORCE_START_FLAG ]] ; then
local systems=`list_host_sys`
contains $1 $systems
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment