diff options
| author | Paul Buetow <paul@buetow.org> | 2025-05-26 10:04:58 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-05-26 10:04:58 +0300 |
| commit | 5b65ad7b5e7bc0c7849fdc767eae5f3366366cd6 (patch) | |
| tree | db2f8bb7e843d04075e24e16721a29e99d67f1ac | |
| parent | e8ac0d1c749a5856b7501d6bbf93c21553f759ce (diff) | |
debug
| -rw-r--r-- | lib/git.source.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/git.source.sh b/lib/git.source.sh index c2b216a..6076516 100644 --- a/lib/git.source.sh +++ b/lib/git.source.sh @@ -1,3 +1,4 @@ + git::_content_dirs_in_git () { find "$CONTENT_BASE_DIR" -maxdepth 1 -mindepth 1 -type d | while read -r content_dir; do @@ -13,10 +14,10 @@ git::add_all () { message='Update content' fi - git::_content_dirs_in_git | while read -r content_dir; do + while read -r content_dir; do log INFO "Adding content from $content_dir to git" git::_add_all "$message" "$content_dir" - done + done < <(git::_content_dirs_in_git) } git::_add_all () { |
