mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-14 16:17:03 +01:00
Improve command logging in run_cmd function
This commit is contained in:
@@ -122,9 +122,8 @@ log_menu() {
|
||||
run_cmd() {
|
||||
local desc="$1"
|
||||
shift
|
||||
if [[ $VERBOSE -eq 1 ]]; then
|
||||
echo -e "${COLOR_DIM}> $*${COLOR_RESET}"
|
||||
fi
|
||||
# Display the command being run
|
||||
echo -e "${COLOR_DIM}> $*${COLOR_RESET}"
|
||||
_log_to_file "[CMD] $*"
|
||||
if [[ $VERBOSE -eq 1 ]]; then
|
||||
if [[ -n "$LOG_FILE" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user