diff options
author | François Charette <francois@archlinux.org> | 2009-05-06 17:57:06 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-05-06 17:57:06 +0200 |
commit | 1c4c32fe1fce12b7c7ea109529dc12dd39d7798a (patch) | |
tree | 0598283bb6cdef6f9227cee0e60f34a7d9f86692 /db-update | |
parent | 3ec1fcda1cc209360116b6548e29e86c22500ec0 (diff) | |
download | dbscripts-1c4c32fe1fce12b7c7ea109529dc12dd39d7798a.tar.gz dbscripts-1c4c32fe1fce12b7c7ea109529dc12dd39d7798a.tar.xz |
db-update: Add if check before 'any' removal
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-x | db-update | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |