From a57efabd4f61479035e8457245092a85a0f5d977 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Wed, 9 Sep 2015 09:58:37 +0200 Subject: [PATCH] Nicer step by step logging --- install_yunohostv2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install_yunohostv2 b/install_yunohostv2 index 68d6923..392d53f 100755 --- a/install_yunohostv2 +++ b/install_yunohostv2 @@ -63,10 +63,9 @@ $1 } step() { - echo "------ [ $(date --rfc-3339=seconds) ] - [ start $1 ] -------------------------------------" >> $YUNOHOST_LOG + printf "[ $(date --rfc-3339=seconds) ] ----- [ entering %-30s ]\n" "$1" >> $YUNOHOST_LOG $* local return_code="$?" - echo "------ [ $(date --rfc-3339=seconds) ] - [ end $1 ] -------------------------------------" >> $YUNOHOST_LOG return $return_code }