tdon't countdown rsync if arg is -f - mars - superminimal static website framework
HTML git clone git://parazyd.org/mars.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 41246bd55794ab5c1b3f2b4159b48d12a8b7e294
DIR parent 97f854dceb7f5c4d1debfd589c95e4011f0c2d5d
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 7 Nov 2016 14:11:58 +0100
don't countdown rsync if arg is -f
Diffstat:
M mars | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/mars b/mars
t@@ -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' \
t@@ -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