summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFabio Castell <webreg@vbsimple.net>2016-09-09 15:39:37 +1000
committerAllan McRae <allan@archlinux.org>2016-09-09 15:40:20 +1000
commit07d1e0441b53fffd4a600babe479e278a2fc50ee (patch)
treea719fc766f63947e2f1f7703954d229236387ab2 /scripts
parent900a22b90c8f8c76b6d5acde9c1d55d7ba65afdb (diff)
downloadpacman-07d1e0441b53fffd4a600babe479e278a2fc50ee.tar.xz
repo-add: fix error in directories with a space in their name
Fixes FS#50285 Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/repo-add.sh.in2
1 files changed, 1 insertions, 1 deletions
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}