diff options
author | Fabio Castell <webreg@vbsimple.net> | 2016-09-09 15:39:37 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-09-09 15:40:20 +1000 |
commit | 07d1e0441b53fffd4a600babe479e278a2fc50ee (patch) | |
tree | a719fc766f63947e2f1f7703954d229236387ab2 | |
parent | 900a22b90c8f8c76b6d5acde9c1d55d7ba65afdb (diff) | |
download | pacman-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>
-rw-r--r-- | scripts/repo-add.sh.in | 2 |
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} |