mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 12:48:36 -06:00
Ensure only one instance is running
This commit is contained in:
parent
fba95e03ef
commit
22c9b6e6ed
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Use force to run the builds forcefully
|
||||
# Run only one instance of this script at one time
|
||||
[ "${BKLOCKER}" != "running" ] && exec env BKLOCKER="running" flock -en "/tmp/revanced-builder.lock" "$0" "$@" || :
|
||||
|
||||
# Get timestamp
|
||||
timestamp=$(date '+%s')
|
||||
|
|
Loading…
Reference in a new issue