mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Prevent concurrent unsigned script from aborting ongoing signed builds
This commit is contained in:
parent
5339dc8687
commit
39d6121c89
1 changed files with 4 additions and 5 deletions
|
@ -95,13 +95,12 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue