diff --git a/rpmrebuild/rpmrebuild.sh b/rpmrebuild/rpmrebuild.sh index 155129c..3e6c540 100755 --- a/rpmrebuild/rpmrebuild.sh +++ b/rpmrebuild/rpmrebuild.sh @@ -363,7 +363,7 @@ function CheckTags function Main { - RPMREBUILD_TMPDIR=${RPMREBUILD_TMPDIR:-~/.tmp/rpmrebuild.$$} + RPMREBUILD_TMPDIR=${RPMREBUILD_TMPDIR:-${TMPDIR:-~/.tmp}/rpmrebuild.$$} RPMREBUILD_BUGREPORT=$RPMREBUILD_TMPDIR/bugreport export RPMREBUILD_BUGREPORT export RPMREBUILD_TMPDIR