summaryrefslogtreecommitdiffstats
path: root/modules/common/soispha/hooks/scripts/sync-git-repo.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-02 19:55:32 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-05 22:47:43 +0100
commit83f0daa6c54c26ad240c46722d3ad84f853f517a (patch)
tree64ea00623691af7ba27d36a8bb3d0faa9a67096f /modules/common/soispha/hooks/scripts/sync-git-repo.sh
parentpkgs/*: Use a `stable`/`unstable` marker in the filename (diff)
downloadnixos-config-83f0daa6c54c26ad240c46722d3ad84f853f517a.zip
modules/*: Fix various name mistakes and other issues
Diffstat (limited to 'modules/common/soispha/hooks/scripts/sync-git-repo.sh')
-rwxr-xr-xmodules/common/soispha/hooks/scripts/sync-git-repo.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/common/soispha/hooks/scripts/sync-git-repo.sh b/modules/common/soispha/hooks/scripts/sync-git-repo.sh
new file mode 100755
index 00000000..fe0d0085
--- /dev/null
+++ b/modules/common/soispha/hooks/scripts/sync-git-repo.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env sh
+
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
+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