get-fedora-latest-config: download relatively to current directory

This commit is contained in:
Frédéric Pierret (fepitre) 2019-04-20 17:11:28 +02:00
parent a5a4ae6735
commit 5a1a029434
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -43,7 +43,7 @@ fi
if [ "x$latestrpm" != "x" ] && [ "x$releasever" != "x" ]; then
key="$localdir/keys/RPM-GPG-KEY-fedora-$releasever-primary"
tmpdir=$(mktemp -d)
tmpdir="$(mktemp -d -p "$localdir")"
# download latest kernel rpm
dnf -q download kernel-core --disablerepo=*modular* --releasever="$releasever"
mv "$latestrpm" "$tmpdir/$latestrpm.untrusted"