mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +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,14 +95,13 @@ 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
|
||||
fi
|
||||
fi
|
||||
sleep 1
|
||||
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue