From d7d3aeee39b2742736b5418482443d7d1748ea07 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 23 Mar 2024 12:20:52 +0100 Subject: [PATCH] sync/debug --- cd-synchronize-output | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/cd-synchronize-output b/cd-synchronize-output index 99d2b17..4fec4ed 100755 --- a/cd-synchronize-output +++ b/cd-synchronize-output @@ -1,6 +1,19 @@ +[ "${1}" ] || exit + +SYNC_HOST="$(basename ${GITHUB_SERVER_URL})" +SYNC_SOURCE="${1}" +SYNC_USER='cd' + +SYNC_ROOT="/${SYNC_USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" + +SYNC_TARGET="${SYNC_USER}@${SYNC_HOST}:${SYNC_ROOT}" +if [ "${2}" ] ; then + SYNC_TARGET="${SYNC_TARGET}/${2}" +fi + #rsync \ #--archive \ #--delete-before \ #--verbose \ -#'out/' \ -echo "${SSH_URL}/" +echo "${SYNC_SOURCE}/" +echo "${SYNC_TARGET}/"