aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-08-17 22:32:34 -0400
committerB. Stack <bgstack15@gmail.com>2021-08-17 22:32:34 -0400
commit448502a729e4399c041006563d590c2bae7aa1b7 (patch)
tree81b4e705e1a5046b73b3cf788ddcf217158ee403
parentadd YUMMIRROR_SCRIPT option to coprmirror (diff)
downloadcoprmirror-448502a729e4399c041006563d590c2bae7aa1b7.tar.gz
coprmirror-448502a729e4399c041006563d590c2bae7aa1b7.tar.bz2
coprmirror-448502a729e4399c041006563d590c2bae7aa1b7.zip
yummirror: remove trailing slash in inurl
-rwxr-xr-xyummirror.sh3
1 files changed, 3 insertions, 0 deletions
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
bgstack15