From: Paul Hänsch Date: Mon, 6 Apr 2020 14:38:32 +0000 (+0200) Subject: default to index listing X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=c15313239476ebd0a3587e87f364ea1f3ffd0a3a;p=serve0 default to index listing --- diff --git a/list.sh b/list.sh index 8e46ab3..58eb062 100644 --- a/list.sh +++ b/list.sh @@ -151,7 +151,7 @@ list_filemeta(){ list_items() { local mode meta - mode="$(COOKIE mode |grep -m1 -axE 'index|browse' || printf browse )" + mode="$(COOKIE mode |grep -m1 -axE 'index|browse' || printf index )" if [ "$mode" = browse ]; then [ "$ITEM" ] && printf 'dir\t..\n'