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

Fixes FS#50285

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 07d1e0441b)
This commit is contained in:
Fabio Castell 2016-09-09 15:39:37 +10:00 committed by Andrew Gregory
parent 1f3793e71a
commit eca2e0f5ed

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}