Add a helper to easily return stuff in config script

This commit is contained in:
Alexandre Aubin 2019-06-18 16:03:00 +02:00
parent 52d1aff2ae
commit 5262b52cff

View file

@ -282,6 +282,16 @@ ynh_script_progression () {
ynh_print_info "[$progression_bar] > ${message}${print_exec_time}"
}
# Return data to the Yunohost core for later processing
# (to be used by special hooks like app config panel and core diagnosis)
#
# usage: ynh_return somedata
#
# Requires YunoHost version 3.6.0 or higher.
ynh_return () {
echo "$1" >> "$YNH_STDRETURN"
}
# Debugger for app packagers
#
# usage: ynh_debug [--message=message] [--trace=1/0]