From 448502a729e4399c041006563d590c2bae7aa1b7 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 17 Aug 2021 22:32:34 -0400 Subject: yummirror: remove trailing slash in inurl --- yummirror.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yummirror.sh b/yummirror.sh index d423515..6cc9630 100755 --- a/yummirror.sh +++ b/yummirror.sh @@ -81,6 +81,9 @@ then inurl="${newurl}" fi +# clean up trailing slashes +inurl="${inurl%%/}" + # sync to workdir wget_verbose=--quiet test -n "${VERBOSE}" && unset wget_verbose -- cgit