created variable for stage file
This commit is contained in:
8
init.sh
8
init.sh
@@ -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 !"
|
||||
|
||||
Reference in New Issue
Block a user