commit fa85648b61b1fcbca9834482f42e4576f4b5e5fa parent 6e868939186341a62a55150f07ce912480e3eb2a Author: parazyd <parazyd@dyne.org> Date: Thu, 28 Jul 2016 15:37:13 +0200 aesthetics Diffstat:
M | mars.sh | | | 11 | +++++------ |
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/mars.sh b/mars.sh @@ -109,12 +109,11 @@ process-page() { sed -i -e 's/class="thisPage" //' $name.html sed -i -e 's/href="\/'$name'.html"/class="thisPage" href="\/'$name'.html"/' $name.html } || { - local dirstr=`basename $PWD` - [[ `grep '"/'$dirstr'/"' $name.html` ]] && { - sed -i -e 's/class="thisPage" //' $name.html - sed -i -e 's/href="\/'$dirstr'\/"/class="thisPage" href="\/'$dirstr'\/"/' $name.html - } || return 0 - } ;; + local dirstr=`basename $PWD` + [[ `grep '"/'$dirstr'/"' $name.html` ]] && { + sed -i -e 's/class="thisPage" //' $name.html + sed -i -e 's/href="\/'$dirstr'\/"/class="thisPage" href="\/'$dirstr'\/"/' $name.html + } || return 0 } ;; *) err "$pageformat is unsupported";; esac