From 39d6121c8984310a7a001bfe6e138418323f9e18 Mon Sep 17 00:00:00 2001 From: Saivann Date: Fri, 26 Jun 2015 00:21:24 -0400 Subject: [PATCH] Prevent concurrent unsigned script from aborting ongoing signed builds --- _build/update_site.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/_build/update_site.sh b/_build/update_site.sh index b2e4429d..09745740 100755 --- a/_build/update_site.sh +++ b/_build/update_site.sh @@ -95,13 +95,12 @@ do fi # Cancel script if a concurrent script has touched _buildlock - time=0 if [ -e "$SITEDIR/_buildlock" ]; then time=`stat -c %Y "$SITEDIR/_buildlock" | cut -d ' ' -f1` - fi - if [ $time != $lasttime ]; then - echo "Build cancelled" - exit + if [ $time != $lasttime ]; then + echo "Build cancelled" + exit + fi fi sleep 1