pkgkit: fix oversight with unset REPOSITORY

This commit is contained in:
Drew DeVault 2021-12-20 11:07:33 +01:00
parent c86c77a1d6
commit 6c2a5f2846
1 changed files with 1 additions and 1 deletions

2
pkgkit
View File

@ -210,7 +210,7 @@ mirror_ver() (
get_aver() {
aver="${REPOSITORY:-}"
if [ ${#REPOSITORY} -eq 0 ]
if [ ${#aver} -eq 0 ]
then
. /etc/os-release
aver="v$(printf "%s" "$VERSION_ID" | cut -d. -f1-2)"