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