From 1966ec526f6d2b47fb443b3eb6f38e34967847da Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Tue, 15 Mar 2022 13:56:40 -0700 Subject: [PATCH] Exclude global-gitignore files --- deploy.sh | 5 ++++- preview.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 2fb1ac5..990de98 100755 --- a/deploy.sh +++ b/deploy.sh @@ -14,4 +14,7 @@ fi source .deploy_config # trailing slash: copy contents of directory into destination -rsync --verbose --human-readable --recursive --links --times --new-compress --delete-delay ${EXTRA_OPTS} public/ "${DEPLOY_HOST}:${DEPLOY_DIR}" +rsync --verbose --human-readable --recursive \ + --links --times --new-compress --delete-delay \ + --exclude-from=$HOME/.config/git/ignore \ + ${EXTRA_OPTS} public/ "${DEPLOY_HOST}:${DEPLOY_DIR}" diff --git a/preview.sh b/preview.sh index 8914dea..0589a2c 100755 --- a/preview.sh +++ b/preview.sh @@ -31,4 +31,5 @@ zola build --drafts --base-url "$PREVIEW" --output-dir "$PREVIEW_TEMP" # trailing slash: copy contents of directory into destination rsync --verbose --human-readable --recursive \ --links --times --new-compress --delete-delay \ + --exclude-from=$HOME/.config/git/ignore \ ${EXTRA_OPTS_PREVIEW:-} "$PREVIEW_TEMP/" "${PREVIEW_HOST}:${PREVIEW_DIR}"