summaryrefslogtreecommitdiff
path: root/lib/git.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-03-15 00:06:25 +0200
committerPaul Buetow <paul@buetow.org>2023-03-15 00:06:25 +0200
commit365a195cc0362bfeb52ebc0e9cb958b0b455aac4 (patch)
treeb8357b1a1122953e66ba37421b017180d1ac50a5 /lib/git.source.sh
parent06310ae8a5649bb41f32d1c752f369dc5e077ee1 (diff)
initial templating support
Diffstat (limited to 'lib/git.source.sh')
-rw-r--r--lib/git.source.sh4
1 files changed, 2 insertions, 2 deletions
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