sync/debug

This commit is contained in:
Marc Beninca 2024-03-23 12:20:52 +01:00
parent b7ab5a1f30
commit d7d3aeee39
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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 \ #rsync \
#--archive \ #--archive \
#--delete-before \ #--delete-before \
#--verbose \ #--verbose \
#'out/' \ echo "${SYNC_SOURCE}/"
echo "${SSH_URL}/" echo "${SYNC_TARGET}/"