fix -fm arg
This commit is contained in:
parent
ac67139195
commit
ecb7e953bb
|
@ -284,6 +284,7 @@ exec_file() {
|
||||||
|
|
||||||
prepare_dirnav() {
|
prepare_dirnav() {
|
||||||
[ ! -d "$dir" ] && return 1
|
[ ! -d "$dir" ] && return 1
|
||||||
|
cd "$dir" || printf "Invalid directory.. somehow\n"
|
||||||
|
|
||||||
listing() {
|
listing() {
|
||||||
command -v fm_pre_list_func > /dev/null && fm_pre_list_func
|
command -v fm_pre_list_func > /dev/null && fm_pre_list_func
|
||||||
|
@ -299,8 +300,7 @@ prepare_dirnav() {
|
||||||
case "$dir" in
|
case "$dir" in
|
||||||
*)
|
*)
|
||||||
if [ -d "$dir" ]; then
|
if [ -d "$dir" ]; then
|
||||||
cd "$dir" || printf "Invalid directory.. somehow\n"
|
dir="$(pwd)/$dir"
|
||||||
dir="$(pwd)"
|
|
||||||
prepare_dirnav
|
prepare_dirnav
|
||||||
elif [ -f "$dir" ]; then
|
elif [ -f "$dir" ]; then
|
||||||
exec_file "$dir" && return 0
|
exec_file "$dir" && return 0
|
||||||
|
|
Loading…
Reference in a new issue