This commit is contained in:
rycee 2024-03-08 23:03:05 +00:00
parent 48e0defbce
commit 417cdcb5f0

View file

@ -7115,9 +7115,10 @@ collisions between non-managed files and files defined in
then the actions taken by the script should be logged to standard out
and not actually performed. A convenient shell function <span class="command"><strong>run</strong></span>
is provided for activation script blocks. It is used as follows:</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><span class="command"><strong>run {command}</strong></span></span></dt><dd><p>Runs the given command on live run, otherwise prints the command to
standard output.</p></dd><dt><span class="term"><span class="command"><strong>run --silence {command}</strong></span></span></dt><dd><p>Runs the given command on live run and sends its standard and error
standard output.</p></dd><dt><span class="term"><span class="command"><strong>run --quiet {command}</strong></span></span></dt><dd><p>Runs the given command on live run and sends its standard output to
<code class="filename">/dev/null</code>, otherwise prints the command to standard output.</p></dd><dt><span class="term"><span class="command"><strong>run --silence {command}</strong></span></span></dt><dd><p>Runs the given command on live run and sends its standard and error
output to <code class="filename">/dev/null</code>, otherwise prints the command to standard
output.</p></dd></dl></div><p>A script block should also respect the <code class="varname">VERBOSE</code> variable, and if
output.</p></dd></dl></div><p>The <code class="literal">--quiet</code> and <code class="literal">--silence</code> flags are mutually exclusive.</p><p>A script block should also respect the <code class="varname">VERBOSE</code> variable, and if
set print information on standard out that may be useful for debugging
any issue that may arise. The variable <code class="varname">VERBOSE_ARG</code> is set to
<code class="option">--verbose</code> if verbose output is enabled. You can also use the