From 1f18d97709abd99ed8ca6c57bf2f3b7ba5162d5d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 23 Jun 2024 23:11:51 +0200 Subject: [PATCH] github/token --- pidd.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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