From 355c7d858d004025761371c520aba17cfc861826 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 6 May 2022 22:19:18 +0200 Subject: [PATCH] =?UTF-8?q?correction=20d=C3=A9tection=20argument?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genlog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genlog.sh b/genlog.sh index db597e5..04b30e6 100755 --- a/genlog.sh +++ b/genlog.sh @@ -4,7 +4,7 @@ tempdir="$(mktemp -d)" # on vérifie s'il y a un argument passé à notre script -if "$1" +if [ -n "$1" ] then # si oui, on l'utilise comme path ou aller taffer source_path="$1"