pypi: strip / in the end of upstream URL

This commit is contained in:
Miao Wang 2023-07-18 15:17:42 +08:00
parent 979a632f16
commit e1c90a2e58

View File

@ -3,6 +3,7 @@ set -e
BANDERSNATCH=${BANDERSNATCH:-"/usr/local/bin/bandersnatch"}
PYPI_MASTER="https://pypi.org"
TUNASYNC_UPSTREAM=${TUNASYNC_UPSTREAM_URL:-$PYPI_MASTER}
TUNASYNC_UPSTREAM=${TUNASYNC_UPSTREAM%/}
CONF="/tmp/bandersnatch.conf"
INIT=${INIT:-"0"}