rankmirrors: fix bogus variable assignment
$replacedurl was being built from an expansion of itself. But at the time it happened, it was empty. Fixes FS#19911 Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
c2cf6a14cf
commit
2222e9f8df
1 changed files with 3 additions and 3 deletions
|
@ -70,15 +70,15 @@ ARCH="$(uname -m)"
|
|||
getfetchurl() {
|
||||
local strippedurl="${1%/}"
|
||||
|
||||
local replacedurl="${replacedurl//'$arch'/$ARCH}"
|
||||
local replacedurl="${strippedurl//'$arch'/$ARCH}"
|
||||
if [[ ! $TARGETREPO ]]; then
|
||||
replacedurl="${strippedurl//'$repo'/core}"
|
||||
replacedurl="${replacedurl//'$repo'/core}"
|
||||
local tmp="${replacedurl%/*}"
|
||||
tmp="${tmp%/*}"
|
||||
|
||||
local reponame="${tmp##*/}"
|
||||
else
|
||||
replacedurl="${strippedurl//'$repo'/$TARGETREPO}"
|
||||
replacedurl="${replacedurl//'$repo'/$TARGETREPO}"
|
||||
local reponame="$TARGETREPO"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue