repo-add: fix error in directories with a space in their name

Fixes FS#50285

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Fabio Castell 2016-09-09 15:39:37 +10:00 committed by Allan McRae
parent 900a22b90c
commit 07d1e0441b
1 changed files with 1 additions and 1 deletions

View File

@ -617,7 +617,7 @@ remove() {
rotate_db() {
dirname=${LOCKFILE%/*}
pushd $dirname >/dev/null
pushd "$dirname" >/dev/null
for repo in "db" "files"; do
filename=${REPO_DB_PREFIX}.${repo}.${REPO_DB_SUFFIX}