summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: