Update btrfs-backup script. Add lock file generation
This commit is contained in:
parent
c8fa2f2b05
commit
3410cbee8f
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ create_lock() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create new lock file with current PID
|
# Create new lock file with current PID
|
||||||
echo $$ > "$LOCK_FILE"
|
sudo echo $$ > "$LOCK_FILE"
|
||||||
|
|
||||||
# Ensure lock file is removed on script exit
|
# Ensure lock file is removed on script exit
|
||||||
trap cleanup_lock EXIT
|
trap cleanup_lock EXIT
|
||||||
|
|
Loading…
Reference in a new issue