diff options
author | Dmytro Meleshko <dmytro.meleshko@gmail.com> | 2019-10-27 21:53:50 +0200 |
---|---|---|
committer | Dmytro Meleshko <dmytro.meleshko@gmail.com> | 2019-10-27 21:53:50 +0200 |
commit | c8716e260e961c12b4b51acd805069de6e2d1f8e (patch) | |
tree | b1c1661bf91fc88ce23af7432ec9e76ef57293fe /examples | |
parent | c915dff4844b99e2759c451215ab3eac70b53ce2 (diff) | |
download | ranger-c8716e260e961c12b4b51acd805069de6e2d1f8e.tar.gz |
Removed unnecessary arguments for mktemp in examples/bash_automatic_cd.sh
Diffstat (limited to 'examples')
-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 c143c68c..0ab0ec13 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 -t tmp.XXXXXX)" + temp_file="$(mktemp)" ranger --choosedir="$temp_file" -- "${@:-$PWD}" if chosen_dir="$(<"$temp_file")" && [[ -n "$chosen_dir" ]]; then cd -- "$chosen_dir" |