created variable for stage file

This commit is contained in:
levasseur
2021-07-12 17:54:33 +02:00
parent 573c2cde5c
commit 3f8d3b633f

View File

@@ -57,6 +57,7 @@ export CHECK_ONLY=false
export JUMP=false
export KEEPGOING=false
export RESUME=false
export STAGE_FILE="$MYPATH/stage"
# Processing command line options
want_module=false
@@ -84,7 +85,7 @@ for opt in $@; do
export KEEPGOING=true
;;
"-r"|"--resume")
if [[ -s $MYPATH/stage ]]; then
if [[ -s $STAGE_FILE ]]; then
export RESUME=true
else
prnt E "Le fichier d'état n'existe pas ou est vide !"
@@ -203,5 +204,10 @@ if [[ $CHECK_ONLY == true ]]; then
exit 0
fi
# We launch modules one after one
for mod in $MODULE_LIST; do
: # do everything
done
prnt I "That's all folks !"