diff --git a/data/helpers.d/print b/data/helpers.d/print index 36f4a120e..740933acb 100644 --- a/data/helpers.d/print +++ b/data/helpers.d/print @@ -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