diff --git a/cd-init b/cd-init index 373e0cd..055622d 100755 --- a/cd-init +++ b/cd-init @@ -20,8 +20,10 @@ AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5 # variables -export USER='cd' +export SSH_ID='cd' -export SSH="${USER}@$(basename ${GITHUB_SERVER_URL})" - -export TARGET="${SSH}:/${USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" +export SSH_URL="\ +${SSH_ID}@$(basename ${GITHUB_SERVER_URL})\ +:\ +/${SSH_ID}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}\ +" diff --git a/cd-synchronize-output b/cd-synchronize-output index f21fcfd..7040829 100755 --- a/cd-synchronize-output +++ b/cd-synchronize-output @@ -3,4 +3,4 @@ rsync \ --delete-before \ --verbose \ 'out/' \ -"${TARGET}/" +"${SSH_URL}/"