Commit a9222e69 authored by Vitaly Lipatov's avatar Vitaly Lipatov

set BITTMPDIR and use in cd_to_temp_dir

parent 40d5e6d0
...@@ -11,9 +11,11 @@ eget() ...@@ -11,9 +11,11 @@ eget()
epm tool eget "$@" epm tool eget "$@"
} }
[ -n "$BIGTMPDIR" ] || [ -d "/var/tmp" ] && BIGTMPDIR="/var/tmp" || BIGTMPDIR="/tmp"
cd_to_temp_dir() cd_to_temp_dir()
{ {
PKGDIR=$(mktemp -d) PKGDIR=$(mktemp -d --tmpdir=$BIGTMPDIR)
trap "rm -fr $PKGDIR" EXIT trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal cd $PKGDIR || fatal
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment