From 493a6a1de97f3c2dca0970c05a2c3f7b522dfc83 Mon Sep 17 00:00:00 2001 From: levasseur Date: Wed, 15 Sep 2021 17:00:50 +0200 Subject: [PATCH] fixed log dir existance check --- init.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.sh b/init.sh index d2c52e9..ef9a2f6 100755 --- a/init.sh +++ b/init.sh @@ -91,7 +91,9 @@ else fi prnt I "Création du répertoire d'accueil du fichier log..." -[[ ! -d $(dirname $LOGFILE) ]] && mkdir -pv $(dirname $LOGFILE) +if [[ ! -d $(dirname $LOGFILE) ]]; then + mkdir -pv $(dirname $LOGFILE) +fi # Log all outputs to the logfile exec 3>&1 4>&2