From 796898b5281a246a991ee66633dc6038d29a58b0 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 20 Jun 2017 13:17:30 +0400 Subject: [PATCH] =?UTF-8?q?apacheconfig:=20destdir=20n'est=20peut-=C3=AAtr?= =?UTF-8?q?e=20pas=20sp=C3=A9cifi=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apacheconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apacheconfig b/apacheconfig index 2ec25dc..7472a61 100755 --- a/apacheconfig +++ b/apacheconfig @@ -162,8 +162,12 @@ fi if [ -n "$pull" ]; then estep "Mise à jour du dépôt" - [ -d "$destdir" ] || die "$destdir: répertoire introuvable" - (cd "$destdir" && git pull) || die + if [ -n "$destdir" ]; then + [ -d "$destdir" ] || die "$destdir: répertoire introuvable" + (cd "$destdir" && git pull) || die + else + git pull || die + fi fi apacheconfig_loadconf "$destdir" "$nohideconfig" || die