From eca2e0f5edb5bee464c7173834c5a5972919d041 Mon Sep 17 00:00:00 2001 From: Fabio Castell Date: Fri, 9 Sep 2016 15:39:37 +1000 Subject: repo-add: fix error in directories with a space in their name Fixes FS#50285 Signed-off-by: Allan McRae (cherry picked from commit 07d1e0441b53fffd4a600babe479e278a2fc50ee) --- scripts/repo-add.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index d62f9c4d..4da2c317 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -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} -- cgit v1.2.3-70-g09d2