From 6ffbde4c30b8ccb4936e5fa92a0450bd645c7d76 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Sun, 26 Apr 2026 16:55:30 +0300 Subject: [PATCH] fix(ci): strip trailing slash from RPM_DIR to avoid double slashes Co-Authored-By: Claude Opus 4.6 (1M context) --- script/publish-repo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/publish-repo.sh b/script/publish-repo.sh index 09a2017..1743a7b 100755 --- a/script/publish-repo.sh +++ b/script/publish-repo.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash set -euo pipefail -RPM_DIR="${1:?usage: $0 }" +RPM_DIR="${1%/}" +: "${RPM_DIR:?usage: $0 }" : "${FEDORA_VERSION:?}" REMOTE_DIR="/var/www/rpm/fedora/${FEDORA_VERSION}/x86_64"