From 65f8a2497bad58619d0cfdc76e4a0efeb15e0306 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 20 May 2021 17:51:07 +0100 Subject: initial macos support --- packages/git.source.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'packages/git.source.sh') diff --git a/packages/git.source.sh b/packages/git.source.sh index ca1f475..c502b00 100644 --- a/packages/git.source.sh +++ b/packages/git.source.sh @@ -1,5 +1,9 @@ # Add a static content file to git git::add () { + if [[ "$USE_GIT" != yes ]]; then + return + fi + local -r content_dir="$CONTENT_BASE_DIR/$1"; shift local file="$1"; shift file=${file/$content_dir/.\/} @@ -11,6 +15,10 @@ git::add () { # Remove a static content file from git git::rm () { + if [[ "$USE_GIT" != yes ]]; then + return + fi + local -r content_dir="$CONTENT_BASE_DIR/$1"; shift local file="$1"; shift file=${file/$content_dir/.\/} @@ -22,6 +30,10 @@ git::rm () { # Commit all changes git::commit () { + if [[ "$USE_GIT" != yes ]]; then + return + fi + local -r content_dir="$CONTENT_BASE_DIR/$1"; shift local -r message="$1"; shift -- cgit v1.2.3