From 582edf277d73afae592a13e0da75d798136b3978 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 20 May 2020 12:45:23 +0200 Subject: [PATCH] refactor: smarter tmpdir creation + cd --- bin/gethugo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gethugo b/bin/gethugo index 09d0c82..63c7713 100755 --- a/bin/gethugo +++ b/bin/gethugo @@ -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"