From 365a195cc0362bfeb52ebc0e9cb958b0b455aac4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 15 Mar 2023 00:06:25 +0200 Subject: initial templating support --- lib/git.source.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git.source.sh') diff --git a/lib/git.source.sh b/lib/git.source.sh index 67dc93e..1a71ade 100644 --- a/lib/git.source.sh +++ b/lib/git.source.sh @@ -23,7 +23,7 @@ git::add_all () { git::_add_all () { local -r message="$1"; shift local -r content_dir="$1"; shift - cd "$content_dir" + cd "$content_dir" || log PANIC "Unable to chdir to $content_dir" find . -type f -not -path '*/\.git*' | while read -r file; do git add "$file" @@ -44,7 +44,7 @@ git::sync_all () { git::_sync_all () { local -r content_dir="$1"; shift - cd "$content_dir" + cd "$content_dir" || log PANIC "Unable to chdir to $content_dir" git pull git push -- cgit v1.2.3