diff --git a/nixos/common/software/cli/scripts/btrfs-backup.sh b/nixos/common/software/cli/scripts/btrfs-backup.sh index 936ce1e3..33a4dcfd 100755 --- a/nixos/common/software/cli/scripts/btrfs-backup.sh +++ b/nixos/common/software/cli/scripts/btrfs-backup.sh @@ -53,6 +53,7 @@ create_lock() { fi # Create new lock file with current PID + sudo touch "$LOCK_FILE" sudo echo $$ > "$LOCK_FILE" # Ensure lock file is removed on script exit