AutoYADM commit: 2025-06-17 00:02:33
This commit is contained in:
parent
cefd6b2450
commit
1f952af0ed
9 changed files with 17 additions and 19 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue