diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 11:53:08 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-04-04 11:53:08 +0200 |
commit | ff491badbb3675c97454449e4e05f060d6ff1df7 (patch) | |
tree | 2423b0e8da91b9ab3d3467650bfdf767f4b417ad /modules/common/hooks/scripts/sync-git-repo.sh | |
parent | feat(pkgs/neorg): Rewrite in rust (diff) | |
download | nixos-config-ff491badbb3675c97454449e4e05f060d6ff1df7.zip |
feat(modules/legacy/taskwarrior): Migrate to by-name
Diffstat (limited to 'modules/common/hooks/scripts/sync-git-repo.sh')
-rwxr-xr-x | modules/common/hooks/scripts/sync-git-repo.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/common/hooks/scripts/sync-git-repo.sh b/modules/common/hooks/scripts/sync-git-repo.sh new file mode 100755 index 00000000..ad7368f3 --- /dev/null +++ b/modules/common/hooks/scripts/sync-git-repo.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +task_data="$(task _get rc.data.location)" +[ "$task_data" ] || die "Taskwarrior should have a location set" + +cd "$task_data" || die "(BUG?): Your data.location path is not accessable" + +[ -d ./.git/ ] || git init + +git add . +git commit --message="chore: Update" --no-gpg-sign + +# vim: ft=sh |