diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
| commit | c80a54e42b52ce297f0f2f71af23c562832025c7 (patch) | |
| tree | dcce8bb977a770f473325d48f6f70b21d9818a40 /ar/.local/bin/task/taskwarrior-tui/tasks-sync | |
init
Diffstat (limited to 'ar/.local/bin/task/taskwarrior-tui/tasks-sync')
| -rwxr-xr-x | ar/.local/bin/task/taskwarrior-tui/tasks-sync | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ar/.local/bin/task/taskwarrior-tui/tasks-sync b/ar/.local/bin/task/taskwarrior-tui/tasks-sync new file mode 100755 index 0000000..06334c4 --- /dev/null +++ b/ar/.local/bin/task/taskwarrior-tui/tasks-sync @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$(task _get tw.syncneeded)" -eq 1 ]; then + if ! task sync 2>/dev/null; then + task config sync.encryption_secret "$(pass show server/task_secret)" + task config sync.gcp.bucket "task.thesiah.xyz" + task config sync.gcp.credential_path "${XDG_DATA_HOME:-${HOME}/.local/share}/task/task-sync-server.json" + + task sync + fi +fi |
