From 1a5544116ffbf13a6fc0711410c7343f18e40653 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 25 Oct 2014 08:41:53 +1000 Subject: [PATCH] Use $() consistently; fail if dirname or cd fails --- daily.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daily.sh b/daily.sh index 5f63d3cad..a128eb0a4 100644 --- a/daily.sh +++ b/daily.sh @@ -1,7 +1,6 @@ #!/bin/bash -dir=`dirname $0` -cd $dir; +cd $(dirname $0) || exit 1 if [ $(php daily.php -f update) -eq 1 ]; then git pull --no-edit --quiet