From 86644c15690a39e0e52a19b39fb06f41c67f0d23 Mon Sep 17 00:00:00 2001 From: lchh Date: Oct 16 2016 08:23:21 +0000 Subject: Fix the $TMPDIR config do not work. --- diff --git a/quick-fedora-mirror b/quick-fedora-mirror index 9edb0d3..56c003e 100755 --- a/quick-fedora-mirror +++ b/quick-fedora-mirror @@ -296,7 +296,7 @@ if [[ -n $backdate ]]; then fi # Make a temp dir and clean it up unless we're doing a lot of debugging -tempd=$(mktemp -d -t quick-mirror.XXXXXXXXXX) +tempd=$(mktemp -d -p $TMPDIR -t quick-mirror.XXXXXXXXXX) if [[ $? -ne 0 ]]; then (>&2 echo "Creating temporary directory failed?") exit 1