Prevent concurrent unsigned script from aborting ongoing signed builds

This commit is contained in:
Saivann 2015-06-26 00:21:24 -04:00 committed by David A. Harding
parent 5339dc8687
commit 39d6121c89
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7

View file

@ -95,14 +95,13 @@ do
fi fi
# Cancel script if a concurrent script has touched _buildlock # Cancel script if a concurrent script has touched _buildlock
time=0
if [ -e "$SITEDIR/_buildlock" ]; then if [ -e "$SITEDIR/_buildlock" ]; then
time=`stat -c %Y "$SITEDIR/_buildlock" | cut -d ' ' -f1` time=`stat -c %Y "$SITEDIR/_buildlock" | cut -d ' ' -f1`
fi
if [ $time != $lasttime ]; then if [ $time != $lasttime ]; then
echo "Build cancelled" echo "Build cancelled"
exit exit
fi fi
fi
sleep 1 sleep 1
done done