mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-16 00:47:02 +01:00
Improve command logging in run_cmd function
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user