summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-02-14 12:00:50 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-02-14 12:00:50 -0300
commit834327b7defe8273f7978328ad1b822960cd5ba0 (patch)
tree12cee36d40907f44aba02eec7352c8c807615bf2 /db-functions
parent4c6b6514e5eb78742369bea3e79fa2c749c1741a (diff)
Ignore rsync temp files
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() {