Ensure only one instance is running
This commit is contained in:
parent
fba95e03ef
commit
22c9b6e6ed
|
@ -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 New Issue