[pacman-dev] [PATCH] repo-add: fix error in directories with a space in their name
Allan McRae
allan at archlinux.org
Fri Sep 9 05:40:37 UTC 2016
From: Fabio Castell <webreg at vbsimple.net>
Fixes FS#50285
Signed-off-by: Allan McRae <allan at archlinux.org>
---
scripts/repo-add.sh.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index d62f9c4..4da2c31 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}
--
2.9.3
More information about the pacman-dev
mailing list