mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #741 from YunoHost/less-madness-in-debug-log-from-script-progression
Use set +x / -x to hide the whole ynh_script_progression computation
This commit is contained in:
commit
aa25fff70a
1 changed files with 3 additions and 0 deletions
|
@ -208,6 +208,7 @@ progress_string0="...................."
|
||||||
# Define base_time when the file is sourced
|
# Define base_time when the file is sourced
|
||||||
base_time=$(date +%s)
|
base_time=$(date +%s)
|
||||||
ynh_script_progression () {
|
ynh_script_progression () {
|
||||||
|
set +x
|
||||||
# Declare an array to define the options of this helper.
|
# Declare an array to define the options of this helper.
|
||||||
local legacy_args=mwtl
|
local legacy_args=mwtl
|
||||||
declare -Ar args_array=( [m]=message= [w]=weight= [t]=time [l]=last )
|
declare -Ar args_array=( [m]=message= [w]=weight= [t]=time [l]=last )
|
||||||
|
@ -217,6 +218,7 @@ ynh_script_progression () {
|
||||||
local last
|
local last
|
||||||
# Manage arguments with getopts
|
# Manage arguments with getopts
|
||||||
ynh_handle_getopts_args "$@"
|
ynh_handle_getopts_args "$@"
|
||||||
|
set +x
|
||||||
weight=${weight:-1}
|
weight=${weight:-1}
|
||||||
time=${time:-0}
|
time=${time:-0}
|
||||||
last=${last:-0}
|
last=${last:-0}
|
||||||
|
@ -280,6 +282,7 @@ ynh_script_progression () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_print_info "[$progression_bar] > ${message}${print_exec_time}"
|
ynh_print_info "[$progression_bar] > ${message}${print_exec_time}"
|
||||||
|
set -x
|
||||||
}
|
}
|
||||||
|
|
||||||
# Debugger for app packagers
|
# Debugger for app packagers
|
||||||
|
|
Loading…
Add table
Reference in a new issue