mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2025-12-07 14:53:37 -08:00
simplify logic in find_media function
This commit is contained in:
6
ani-cli
6
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" "/"
|
|
||||||
find_media "/"
|
|
||||||
else
|
|
||||||
insert_history "directory" "$dotdotslash"
|
insert_history "directory" "$dotdotslash"
|
||||||
find_media "$dotdotslash"
|
find_media "$dotdotslash"
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
Quit)
|
Quit)
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user