mars

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

commit 41246bd55794ab5c1b3f2b4159b48d12a8b7e294
parent 97f854dceb7f5c4d1debfd589c95e4011f0c2d5d
Author: parazyd <parazyd@dyne.org>
Date:   Mon,  7 Nov 2016 14:11:58 +0100

don't countdown rsync if arg is -f

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

diff --git a/mars b/mars @@ -129,7 +129,7 @@ skip-page() { } push() { - countdown "rsyncing" && \ + [[ "$1" = "-f" ]] || countdown "rsyncing" rsync -P -e 'ssh' -avul --delete --stats \ --size-only \ --exclude-from 'rsync-exclude' \ @@ -139,6 +139,6 @@ push() { case "$1" in generate) generate;; clean) clean "$2";; - push) push;; + push) push "$2";; *) print "usage: `basename $0` {generate|clean|push}";; esac