mars

superminimal static website framework
git clone git://parazyd.org/mars.git
Log | Files | Refs | README | LICENSE

commit a16e47faeb4a32510397580735fc6bae1540b7ae
parent 364b7c8472a33a596b6cabfb3c01e9c5b7ea7821
Author: parazyd <parazyd@dyne.org>
Date:   Fri,  1 Jul 2016 15:05:21 +0200

fix clean()

Diffstat:
Mmars.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mars.sh b/mars.sh @@ -64,8 +64,8 @@ clean() { print "${fg[blue]} -- /$dir --${reset_color}" pushd $dir && pages=($(ls *.$pageformat)) && { for page in $pages; do - [[ -n "${exclude[(r)$page]}" ]] || name=${page[(ws:.:)1]} - printf "${fg[blue]}(*) ${reset_color}" && rm -v $name.html + [[ -n "${exclude[(r)$page]}" ]] || { name=${page[(ws:.:)1]} && \ + printf "${fg[blue]}(*) ${reset_color}" && rm -v $name.html } done && popd } || { wrn "directory unusable" && popd } done