Added manual configuration through command line, finished function headers comments

This commit is contained in:
levasseur
2021-09-06 15:21:12 +02:00
parent 66daa05175
commit 9057325412
7 changed files with 84 additions and 23 deletions

View File

@@ -18,10 +18,10 @@ function die()
trap - ERR
if [[ "$KEEPGOING" != "true" ]] || [[ "$2" == "--force" ]]; then
prnt E "Sortie prématuré avec erreur (code #$errorcode)."
exit $errorcode
prnt E "Sortie prématuré avec erreur (code #$errorcode)."
exit $errorcode
else
prnt W "On continue malgrés l'erreur #$errorcode."
prnt W "On continue malgrés l'erreur #$errorcode."
fi
# Put the trigger back (only executed with --keepgoing)
@@ -31,6 +31,7 @@ export -f die
# ------------------------------------------------------------------------------
# Function trigered on Ctrl+C pressed or external kill affecting us
function terminate()
{
prnt E "$1 reçu, sortie immédiate."
@@ -89,3 +90,5 @@ check_root()
die 4 --force
fi
}
# EOF