We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aca9cb0 commit a1c012aCopy full SHA for a1c012a
nhc-wrapper
@@ -220,7 +220,11 @@ function nhcwrap_spawn_command() {
220
vecho "Executing \"$SUBPROG ${ARGLIST[*]}\"" `date "+$NW_DATEFMT"`
221
# Remove output file so that it will be recreated by bash with ctime of now.
222
rm -f "$OUTFILE"
223
- "$SUBPROG" "${ARGLIST[@]}" >& "$OUTFILE"
+ if [[ "$VERBOSE" -eq 1 ]]; then
224
+ "$SUBPROG" "${ARGLIST[@]}" 2>&1 | tee "$OUTFILE"
225
+ else
226
+ "$SUBPROG" "${ARGLIST[@]}" >& "$OUTFILE"
227
+ fi
228
RC=$?
229
vecho "$SUBPROG returned $RC" `date "+$NW_DATEFMT"`
230
0 commit comments