gopher.sh: fix mktemp usage (6 'X's instead of 5?)
authorNiki Roo <niki@nikiroo.be>
Tue, 3 Apr 2018 10:48:59 +0000 (12:48 +0200)
committerNiki Roo <niki@nikiroo.be>
Tue, 3 Apr 2018 10:48:59 +0000 (12:48 +0200)
gopher.sh

index 93715fca3de805898818f472c72df10af51e81a2..56fe265365b16ec7e29ce6272f09764cdea3d22b 100755 (executable)
--- a/gopher.sh
+++ b/gopher.sh
@@ -66,7 +66,7 @@ getsel() {
        cat "$1" | grep '^[0-9]' | tail -n+"$2" | head -n 1 | cut -f"$3"
 }
 
-tmp="`mktemp gofetch.current_page.XXXXX`"
+tmp="`mktemp -t gofetch.current_page.XXXXXX`"
 finish() {
   rm -rf "$tmp"
 }