From 147eee53ce0bccbcc0c3538c4af1e468ad64aab0 Mon Sep 17 00:00:00 2001 From: Marcus Furlong Date: Fri, 30 Oct 2026 23:14:42 -0400 Subject: [PATCH] strip trailing slash from apt mirror file urls --- client/patchman-client | 1 + 1 file changed, 1 insertion(+) diff --git a/client/patchman-client b/client/patchman-client index 9e8615bb..420e600b 100755 --- a/client/patchman-client +++ b/client/patchman-client @@ -592,6 +592,7 @@ get_repos() { mirror_file=$(echo "${mirror_repo}" | sed -e "s/.* mirror+file://g" | cut -d " " -f 1) if [ -f "${mirror_file}" ] ; then for url in $(cat ${mirror_file}) ; do + url=${url%/} dist_repo=$(echo "${mirror_repo}" | sed -e "s#mirror+file:${mirror_file}#${url}#g") dist_repos="${dist_repos}"$'\n'"${dist_repo}" done