diff options
author | B. Stack <bgstack15@gmail.com> | 2021-08-17 22:32:34 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2021-08-17 22:32:34 -0400 |
commit | 448502a729e4399c041006563d590c2bae7aa1b7 (patch) | |
tree | 81b4e705e1a5046b73b3cf788ddcf217158ee403 | |
parent | add YUMMIRROR_SCRIPT option to coprmirror (diff) | |
download | coprmirror-448502a729e4399c041006563d590c2bae7aa1b7.tar.gz coprmirror-448502a729e4399c041006563d590c2bae7aa1b7.tar.bz2 coprmirror-448502a729e4399c041006563d590c2bae7aa1b7.zip |
yummirror: remove trailing slash in inurl
-rwxr-xr-x | yummirror.sh | 3 |
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 |