Skip to content

Commit

Permalink
fix: cu::log_then_run use cu::print_calling_command_line to print…
Browse files Browse the repository at this point in the history
… command line
  • Loading branch information
oldratlee committed Jul 17, 2023
1 parent 1910fef commit 63c1e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ cu::log_then_run() {
}

if $simple_mode; then
echo "Run under work directory $PWD : $*" >&2
echo "Run under work directory $PWD : $(cu::print_calling_command_line "$@")" >&2
"$@"
else
cu::blue_echo "Run under work directory $PWD :" >&2
cu::blue_echo "$*" >&2
cu::blue_echo "$(cu::print_calling_command_line "$@")" >&2
time "$@"
fi
}
Expand Down

0 comments on commit 63c1e0e

Please sign in to comment.