From 1c4c32fe1fce12b7c7ea109529dc12dd39d7798a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Charette?= Date: Wed, 6 May 2009 08:57:06 -0700 Subject: db-update: Add if check before 'any' removal Signed-off-by: Aaron Griffin --- db-update | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'db-update') 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: -- cgit v1.2.3