summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions5
1 files changed, 5 insertions, 0 deletions
diff --git a/db-functions b/db-functions
index 4dddcb5..4c247a7 100644
--- a/db-functions
+++ b/db-functions
@@ -293,6 +293,9 @@ getpkgfile() {
}
getpkgfiles() {
+# Ignore anything that doesn't glob to PKGEXT
+ shopt -s nullglob
+
local f
if [ ! -z "$(echo ${@%\.*} | sed "s/ /\n/g" | sort | uniq -D)" ]; then
error 'Duplicate packages found!'
@@ -310,6 +313,8 @@ getpkgfiles() {
done
echo ${@}
+
+ shopt -u nullglob
}
check_pkgfile() {