summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Charette <francois@archlinux.org>2009-05-06 17:57:06 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-06 17:57:06 +0200
commit1c4c32fe1fce12b7c7ea109529dc12dd39d7798a (patch)
tree0598283bb6cdef6f9227cee0e60f34a7d9f86692
parent3ec1fcda1cc209360116b6548e29e86c22500ec0 (diff)
downloaddbscripts-1c4c32fe1fce12b7c7ea109529dc12dd39d7798a.tar.gz
dbscripts-1c4c32fe1fce12b7c7ea109529dc12dd39d7798a.tar.xz
db-update: Add if check before 'any' removal
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-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: