From e048f62a2e15c320cae428517ddd2652bc0c1bbe Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Mon, 7 Oct 2013 08:41:19 +0400 Subject: [PATCH] =?UTF-8?q?transporter=20le=20niveau=20de=20verbosit=C3=A9?= =?UTF-8?q?=20et=20d'interaction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ulib/uinst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ulib/uinst b/ulib/uinst index 5bd161b..284915f 100644 --- a/ulib/uinst +++ b/ulib/uinst @@ -721,6 +721,8 @@ function __uinst_udir2s() { __uinst_updateconfig="$__uinst_configdir/updateconfig" set_var_cmd ABORT "$__uinst_abort" >>"$__uinst_config" set_var_cmd CONFIG "$__uinst_updateconfig" >>"$__uinst_config" + set_var_cmd __verbosity "$__verbosity" >>"$__uinst_config" + set_var_cmd __interaction "$__interaction" >>"$__uinst_config" for __uinst_var in "${__uinst_vars[@]}"; do set_var_cmd "$__uinst_var" "${!__uinst_var}" >>"$__uinst_config" done @@ -1265,11 +1267,13 @@ function __uinst2s_copy_files() { # atomique possible: déployer dans un répertoire temporaire, qui # sera renommé vers la destination au dernier moment eimportant "Le répertoire destination $dest sera écrasé" - ebegin "Attente de 3 secondes" - sleep 1; edot - sleep 1; edot - sleep 1; edot - eend + if is_interaction -C; then + ebegin "Attente de 3 secondes" + sleep 1; edot + sleep 1; edot + sleep 1; edot + eend + fi atomic=1 actualdest="$dest"