1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 15:28:50 -05:00

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

Fixes FS#50285

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Fabio Castell 2016-09-09 15:39:37 +10:00 committed by Allan McRae
parent 900a22b90c
commit 07d1e0441b

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}