diff options
author | Dmytro Meleshko <dmytro.meleshko@gmail.com> | 2019-10-28 12:07:36 +0200 |
---|---|---|
committer | Dmytro Meleshko <dmytro.meleshko@gmail.com> | 2019-10-28 12:07:36 +0200 |
commit | e7fa9d9d694daf5722cef2a929bc2681fc9bff75 (patch) | |
tree | 210d071d54201440d3bab788d73a36166da49e59 | |
parent | 65cf599607f1d125272a4ba3b63ac55ac74a0e43 (diff) | |
download | ranger-e7fa9d9d694daf5722cef2a929bc2681fc9bff75.tar.gz |
Added pattern for mktemp back
-rw-r--r-- | examples/bash_automatic_cd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |