AutoYADM commit: 2025-06-17 00:02:33

This commit is contained in:
Daniel Fichtinger 2025-06-17 00:02:33 -04:00
parent cefd6b2450
commit 1f952af0ed
9 changed files with 17 additions and 19 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh
DATA="$HOME/.local/share/task"
n=0
while IFS= read -r _; do
n=$((n + 1))
@ -7,10 +9,10 @@ done
if [ "$n" -gt 0 ]; then
{
lockfile="$HOME/.task/sync_hook.lock"
errfile="$HOME/.task/sync_hook.err"
lerrfile="$HOME/.task/sync_hook.errl"
logfile="$HOME/.task/sync_hook.log"
lockfile="$DATA/sync_hook.lock"
errfile="$DATA/sync_hook.err"
lerrfile="$DATA/sync_hook.errl"
logfile="$DATA/sync_hook.log"
flock "$lockfile" sh -c '
task sync >>"$1" 2>"$2"