diff --git a/init.sh b/init.sh index 89e95f2..c7edc05 100755 --- a/init.sh +++ b/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 !"