diff options
author | Dmytro Meleshko <dmytro.meleshko@gmail.com> | 2019-10-28 12:45:25 +0200 |
---|---|---|
committer | Dmytro Meleshko <dmytro.meleshko@gmail.com> | 2019-10-28 12:45:25 +0200 |
commit | fa670720e20212c70b19b1b7949ae0c36763c819 (patch) | |
tree | 103aa81b7d6d098dfdb7a89ae85612a1abc2fc96 | |
parent | 458e8d1812153b7ea8f78d7987f99b02a5ac05fc (diff) | |
download | ranger-fa670720e20212c70b19b1b7949ae0c36763c819.tar.gz |
Removed replaced $(<...) with cat
-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 0f09079d..4e505327 100644 --- a/examples/bash_automatic_cd.sh +++ b/examples/bash_automatic_cd.sh @@ -11,7 +11,7 @@ ranger-cd() { local temp_file chosen_dir temp_file="$(mktemp -t "${0}.XXXXXXXXXX")" ranger --choosedir="$temp_file" -- "${@:-$PWD}" - if chosen_dir="$(<"$temp_file")" && [ -n "$chosen_dir" ] && [ "$chosen_dir" != "$PWD" ]; then + if chosen_dir="$(cat "$temp_file")" && [ -n "$chosen_dir" ] && [ "$chosen_dir" != "$PWD" ]; then cd -- "$chosen_dir" fi rm -f -- "$temp_file" |