mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2026-10-21 05:01:23 -07:00
simplify logic in find_media function
This commit is contained in:
1 parent
d7bd5899b5
commit
8fb570b003
1 file changed
+3
-7
@@ -408,13 +408,9 @@ find_media() {
|
||||
case "$selection" in
|
||||
Back | ../)
|
||||
dotdotslash="${inp%/*}"
|
||||
if [ -z "$dotdotslash" ]; then
|
||||
insert_history "directory" "/"
|
||||
find_media "/"
|
||||
else
|
||||
insert_history "directory" "$dotdotslash"
|
||||
find_media "$dotdotslash"
|
||||
fi
|
||||
[ -z "$dotdotslash" ] && dotdotslash="/"
|
||||
insert_history "directory" "$dotdotslash"
|
||||
find_media "$dotdotslash"
|
||||
;;
|
||||
Quit)
|
||||
return 1
|
||||
|
||||
Reference in new issue
Block a user