Amber
Amber copied to clipboard
[Feature] Native lockfile
So can be handy to be able to run the script just once and not multiple times together.
I am thinking like a statement that you put on top of the bash script file with a bash code like this:
LOCK_FILE=/tmp/$scriptfilename.lock
if [ -f "$LOCK_FILE" ]; then
echo "Script is already running"
exit
fi