refactor: smarter tmpdir creation + cd

This commit is contained in:
surtur 2020-05-20 12:45:23 +02:00
parent b39303f743
commit 582edf277d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -8,7 +8,7 @@ else
fi
mktemp -d && cd /tmp/$(ls -t /tmp | grep tmp. | head -1)
nutmp=$(mktemp -d);cd "$nutmp";unset nutmp
WORKDIR=$(pwd)
HOMEBIN="/home/$USER/.local/bin"