mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Adding an app helper to display infos
This commit is contained in:
parent
5cd1563014
commit
7c28ec1c1b
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,14 @@ ynh_die() {
|
||||||
exit "${2:-1}"
|
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
|
# Ignore the yunohost-cli log to prevent errors with conditionals commands
|
||||||
# usage: ynh_no_log COMMAND
|
# usage: ynh_no_log COMMAND
|
||||||
# Simply duplicate the log, execute the yunohost command and replace the log without the result of this command
|
# Simply duplicate the log, execute the yunohost command and replace the log without the result of this command
|
||||||
|
|
Loading…
Add table
Reference in a new issue