pkgdelta/repo-add: quoting fixes

Finish the job on master; most of these were applied to maint already.

Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
Florian Pritz 2012-04-07 14:18:28 +02:00 committed by Dan McGee
parent 2e6cb69bf6
commit 678bdfb0d0

View file

@ -662,7 +662,7 @@ if (( success )); then
dirname=${LOCKFILE%/*} dirname=${LOCKFILE%/*}
filename=${REPO_DB_FILE##*/} filename=${REPO_DB_FILE##*/}
# this ensures we create it on the same filesystem, making moves atomic # this ensures we create it on the same filesystem, making moves atomic
tempname="$dirname/.tmp.$filename" tempname=$dirname/.tmp.$filename
pushd "$tmpdir/tree" >/dev/null pushd "$tmpdir/tree" >/dev/null
if ( shopt -s nullglob; files=(*); (( ${#files[*]} )) ); then if ( shopt -s nullglob; files=(*); (( ${#files[*]} )) ); then