add missing dry run flags

This commit is contained in:
Louis Abel 2023-05-19 11:30:50 -07:00
parent 7d15d57ca1
commit ed38b67626
Signed by: label
GPG Key ID: B37E62D143879B36
2 changed files with 8 additions and 5 deletions

View File

@ -160,7 +160,7 @@ function perform_hardlink() {
# dry rsync # dry rsync
function rsync_no_delete_staging_dry() { function rsync_no_delete_staging_dry() {
local TARGET="${1}" local TARGET="${1}"
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable compose/ "${TARGET}" sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --dry-run compose/ "${TARGET}"
} }
function rsync_no_delete_staging_pungi_dry() { function rsync_no_delete_staging_pungi_dry() {
@ -179,6 +179,7 @@ function rsync_no_delete_staging_pungi_dry() {
--exclude COMMUNITY-CHARTER \ --exclude COMMUNITY-CHARTER \
--exclude extra_files.json \ --exclude extra_files.json \
--exclude Minimal \ --exclude Minimal \
--dry-run \
compose/ "${TARGET}" compose/ "${TARGET}"
} }
@ -188,6 +189,7 @@ function rsync_no_delete_staging_with_excludes_dry() {
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \ sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \
--exclude "${EXCLUDE}" \ --exclude "${EXCLUDE}" \
--exclude Minimal \ --exclude Minimal \
--dry-run \
compose/ "${TARGET}" compose/ "${TARGET}"
} }
@ -197,24 +199,25 @@ function rsync_delete_staging_with_excludes_dry() {
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \ sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable \
--exclude "${EXCLUDE}" \ --exclude "${EXCLUDE}" \
--exclude Minimal \ --exclude Minimal \
--dry-run \
compose/ "${TARGET}" compose/ "${TARGET}"
} }
function rsync_no_delete_prod_dry() { function rsync_no_delete_prod_dry() {
local REV="${1}" local REV="${1}"
local TARGET="${2}" local TARGET="${2}"
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable "${REV}/" "${TARGET}" sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --dry-run "${REV}/" "${TARGET}"
} }
function rsync_delete_staging_dry() { function rsync_delete_staging_dry() {
local TARGET="${1}" local TARGET="${1}"
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --delete compose/ "${TARGET}" sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --delete --dry-run compose/ "${TARGET}"
} }
function rsync_delete_prod_dry() { function rsync_delete_prod_dry() {
local REV="${1}" local REV="${1}"
local TARGET="${2}" local TARGET="${2}"
sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --delete "${REV}/" "${TARGET}" sudo -l && rsync -vrlptDSHog --chown=10004:10005 --progress --human-readable --delete --dry-run "${REV}/" "${TARGET}"
} }

View File

@ -11,7 +11,7 @@ source "$(dirname "$0")/common"
REV=${REVISION}${APPEND_TO_DIR} REV=${REVISION}${APPEND_TO_DIR}
cd "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}" || { echo "Failed to change directory"; ret_val=1; exit 1; } cd "${STAGING_ROOT}/${CATEGORY_STUB}" || { echo "Failed to change directory"; ret_val=1; exit 1; }
ret_val=$? ret_val=$?
if [ $ret_val -eq "0" ]; then if [ $ret_val -eq "0" ]; then