Improve command logging in run_cmd function

This commit is contained in:
Stanislas Lange
2025-12-09 21:41:08 +01:00
parent 625821dfd0
commit fb2041d9bb

View File

@@ -122,9 +122,8 @@ log_menu() {
run_cmd() { run_cmd() {
local desc="$1" local desc="$1"
shift shift
if [[ $VERBOSE -eq 1 ]]; then # Display the command being run
echo -e "${COLOR_DIM}> $*${COLOR_RESET}" echo -e "${COLOR_DIM}> $*${COLOR_RESET}"
fi
_log_to_file "[CMD] $*" _log_to_file "[CMD] $*"
if [[ $VERBOSE -eq 1 ]]; then if [[ $VERBOSE -eq 1 ]]; then
if [[ -n "$LOG_FILE" ]]; then if [[ -n "$LOG_FILE" ]]; then