diff --git a/pidd.sh b/pidd.sh index 5e705a8..aa98d43 100644 --- a/pidd.sh +++ b/pidd.sh @@ -353,12 +353,11 @@ Acquire::https::Verify-Peer False; if [ -n "${GITHUB_ACTIONS}" ] ; then # github → gitea → forgejo if [ -n "${GITHUB_SERVER_URL}" ] ; then + PIDD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")//" if [ -n "${GITHUB_TOKEN}" ] ; then - PIDD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")\ -//${GITHUB_TOKEN}@$(basename "${GITHUB_SERVER_URL}")" - else - pidd_error_ci "GITHUB_TOKEN" + PIDD_PROJECT_ROOT="${PIDD_PROJECT_ROOT}${GITHUB_TOKEN}@" fi + PIDD_PROJECT_ROOT="${PIDD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")" else pidd_error_ci "GITHUB_SERVER_URL" fi