mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
simplify logic in find_media function
This commit is contained in:
parent
d7bd5899b5
commit
8fb570b003
10
ani-cli
10
ani-cli
@ -408,13 +408,9 @@ find_media() {
|
|||||||
case "$selection" in
|
case "$selection" in
|
||||||
Back | ../)
|
Back | ../)
|
||||||
dotdotslash="${inp%/*}"
|
dotdotslash="${inp%/*}"
|
||||||
if [ -z "$dotdotslash" ]; then
|
[ -z "$dotdotslash" ] && dotdotslash="/"
|
||||||
insert_history "directory" "/"
|
insert_history "directory" "$dotdotslash"
|
||||||
find_media "/"
|
find_media "$dotdotslash"
|
||||||
else
|
|
||||||
insert_history "directory" "$dotdotslash"
|
|
||||||
find_media "$dotdotslash"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
Quit)
|
Quit)
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user