summaryrefslogtreecommitdiff
path: root/db-update
diff options
context:
space:
mode:
authorFrançois Charette <francois@archlinux.org>2009-05-06 08:57:06 -0700
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-06 08:57:06 -0700
commit1c4c32fe1fce12b7c7ea109529dc12dd39d7798a (patch)
tree0598283bb6cdef6f9227cee0e60f34a7d9f86692 /db-update
parent3ec1fcda1cc209360116b6548e29e86c22500ec0 (diff)
db-update: Add if check before 'any' removal
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update5
1 files changed, 3 insertions, 2 deletions
diff --git a/db-update b/db-update
index fcd7388..426a236 100755
--- a/db-update
+++ b/db-update
@@ -231,7 +231,8 @@ for A in ${ARCHES[@]}; do
repo_unlock $reponame $current_arch
done
-
-/bin/rm $to_add_any
+if [ -n "$to_add_any" ]; then
+ /bin/rm $to_add_any
+fi
cleanup
# vim: set ts=4 sw=4 noet ft=sh: