Merge pull request #1531 from job/robust_daily

Improve daily.sh robustness
This commit is contained in:
Daniel Preussker
2015-07-28 20:08:28 +00:00
+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