From e7fa9d9d694daf5722cef2a929bc2681fc9bff75 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Mon, 28 Oct 2019 12:07:36 +0200 Subject: Added pattern for mktemp back --- examples/bash_automatic_cd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/bash_automatic_cd.sh b/examples/bash_automatic_cd.sh index 0ab0ec13..642d6f29 100644 --- a/examples/bash_automatic_cd.sh +++ b/examples/bash_automatic_cd.sh @@ -9,7 +9,7 @@ ranger-cd() { local temp_file chosen_dir - temp_file="$(mktemp)" + temp_file="$(mktemp -t "${0}.XXXXXXXXXX")" ranger --choosedir="$temp_file" -- "${@:-$PWD}" if chosen_dir="$(<"$temp_file")" && [[ -n "$chosen_dir" ]]; then cd -- "$chosen_dir" -- cgit 1.4.1-2-gfad0