mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Nicer step by step logging
This commit is contained in:
parent
b47bd6a4c2
commit
a57efabd4f
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue