make-rhat-patches: Use default tmp directory

It's better to use the standard /tmp, since it commonly has tmpfs
mounted over it, which avoids unnecessary disk I/O. Let's make our SSDs
slightly happier :)

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2020-10-05 21:01:57 +02:00 committed by zpytela
parent 5772505d0d
commit d9d5631b8d

View File

@ -20,7 +20,7 @@ fi
git checkout $DISTGIT_BRANCH -q
POLICYSOURCES=`mktemp -d policysources.XXXXXX`
POLICYSOURCES=`mktemp -d --tmpdir policysources.XXXXXX`
pushd $POLICYSOURCES > /dev/null
git clone -q $REPO_SELINUX_POLICY selinux-policy