Improve daily.sh robustness

This commit is contained in:
Job Snijders
2015-07-26 09:58:19 +02:00
parent 65abf8bd7a
commit 0e473d2538
+5 -3
View File
@@ -1,8 +1,10 @@
#!/bin/bash
#!/usr/bin/env bash
cd $(dirname $0) || exit 1
set -eu
if [ $(php daily.php -f update) -eq 1 ]; then
cd "$(dirname "$0")"
if [ "$(php daily.php -f update)" -eq 1 ]; then
git pull --quiet
php includes/sql-schema/update.php
fi