diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-12-07 18:24:01 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-12-07 18:24:01 +0300 |
commit | 816d965b42588ffbf8b07e4026c039c8c86dcad9 (patch) | |
tree | 45e66758430227a4b2d01214602f30046958254c /entry | |
parent | 30cff0f11149ea2a85b025d143aa4a46369c87f0 (diff) | |
download | vsvs-816d965b42588ffbf8b07e4026c039c8c86dcad9.tar vsvs-816d965b42588ffbf8b07e4026c039c8c86dcad9.tar.xz vsvs-816d965b42588ffbf8b07e4026c039c8c86dcad9.zip |
.
Diffstat (limited to 'entry')
-rw-r--r-- | entry | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,10 +9,10 @@ after () { test -z "${2##*$1*}" && echo -n "${2#*$1}"; } startswith() { case $2 in "$1"*) true;; *) false;; esac; } if test -z "$1" -then cat index.html +then cat data/index.html elif startswith "article/" "$1" then cd article; ./entry "$(after / $1)" elif startswith "admin/" "$1" then cd admin; ./entry "$(after / $1)" -else cat 404.html +else cat data/404.html fi |