summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-15 15:49:41 +0100
committerErich Eckner <git@eckner.net>2018-02-15 15:49:41 +0100
commit74b5ceb19b64d8f7f92320dfd269c5f6ceaf5bb2 (patch)
tree905c99c1c4b0adc542dff379a89e09e1a39e6ecf /bin/common-functions
parent45ca53e3a30afb02d30cbcf1ef16fa40278731f0 (diff)
downloadbuilder-74b5ceb19b64d8f7f92320dfd269c5f6ceaf5bb2.tar.xz
bin/common-functions: fix typo - arrrgh
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/common-functions b/bin/common-functions
index bcf8ed2..d0786a9 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -431,7 +431,7 @@ remove_old_package_versions() {
local pkgver
local pkgrel
local sub_pkgrel
- pkgname="${pkgname%-*}"
+ pkgname="${package%-*}"
pkgrel="${pkgname##*-}"
sub_pkgrel="${pkgrel##*.}"
if [ "${sub_pkgrel}" = "${pkgrel}" ]; then