summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 3a5aef2..a5c12f2 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -276,10 +276,12 @@ modified_makepkg() {
# a string to be appended
pkgbuild_append='
# do not do split packages
-if [[ -n $pkgbase ]]; then
- pkgname=$pkgbase
-else
- pkgname=$pkgname
+if [[ ${#pkgname[@]} -gt 1 ]]; then
+ if [[ -n $pkgbase ]]; then
+ pkgname=("$pkgbase")
+ else
+ pkgname=("$pkgname")
+ fi
fi
# copy source variables