[enh] Adding an app helper to display infos

This commit is contained in:
Alexandre Aubin 2017-10-29 23:37:51 +01:00
parent 5cd1563014
commit 7c28ec1c1b

View file

@ -5,6 +5,14 @@ ynh_die() {
exit "${2:-1}"
}
# Display a message in the 'INFO' logging category
#
# usage: ynh_info "Some message"
ynh_info()
{
echo "$1" >>"$YNH_STDINFO"
}
# Ignore the yunohost-cli log to prevent errors with conditionals commands
# usage: ynh_no_log COMMAND
# Simply duplicate the log, execute the yunohost command and replace the log without the result of this command