From 98582e6d376c7e24a15fc23e3f4925fb626f4d27 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Fri, 22 Jul 2011 19:45:23 +0200 Subject: [PATCH] Script: applicato modifiche di Fabio Invernizzi (fabulus@linux.it) --- script/aggiorna-lugmap.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/aggiorna-lugmap.sh b/script/aggiorna-lugmap.sh index 6715062c..a7bb839e 100755 --- a/script/aggiorna-lugmap.sh +++ b/script/aggiorna-lugmap.sh @@ -15,5 +15,7 @@ fallito_aggiornamento() { exit } -su -c "cd $PATH_SITO && /usr/bin/git pull -q git://github.com/Gelma/LugMap.git lugmap.linux.it" www-data || fallito_aggiornamento -su -c "/bin/date -d @$(git log -n 1 --pretty="%at") > .ultimo_commit" www-data +cd $PATH_SITO + +su -c "/usr/bin/git pull -q git://github.com/Gelma/LugMap.git lugmap.linux.it" www-data || fallito_aggiornamento +su -c "/bin/date -d @$(git log -n 1 --pretty='%at') > .ultimo_commit" www-data