Skip to content

Commit

Permalink
skip
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Nov 24, 2024
1 parent 952f5eb commit 7c0199f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lgsm/modules/check_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ fn_install_missing_deps() {

else
if [ "${commandname}" == "INSTALL" ]; then
fn_print_information_nl "Required dependencies already installed."
fn_print_skip2_nl "Required dependencies already installed."
fn_script_log_info "Required dependencies already installed."
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/command_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ check.sh
# If the server already started dont start again.
if [ "${status}" != "0" ]; then
fn_print_dots "${servername}"
fn_print_info_nl "${servername} is already running"
fn_print_skip_nl "${servername} is already running"
fn_script_log_error "${servername} is already running"
if [ -z "${exitbypass}" ]; then
# Remove starting lockfile when command ends.
Expand Down
2 changes: 1 addition & 1 deletion lgsm/modules/command_stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ fn_stop_tmux() {
# Checks if the server is already stopped.
fn_stop_pre_check() {
if [ "${status}" == "0" ]; then
fn_print_info_nl "${servername} is already stopped"
fn_print_skip_nl "${servername} is already stopped"
fn_script_log_info "${servername} is already stopped"
else
# Select graceful shutdown.
Expand Down
20 changes: 20 additions & 0 deletions lgsm/modules/core_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@ fn_print_info_nl() {
fn_print_message_nl "INFO" "${cyan}" "$*"
}

# [ SKIP ]
fn_print_skip() {
fn_print_message "SKIP" "${cyan}" "$*"
}

fn_print_SKIP_nl() {
fn_print_message_nl "SKIP" "${cyan}" "$*"
}

# [ START ]
fn_print_start() {
fn_print_message "START" "${lightgreen}" "$*"
Expand Down Expand Up @@ -283,6 +292,17 @@ fn_print_information_nl() {
fn_sleep_time
}

# Skip!
fn_print_skip2() {
echo -en "${cyan}Skip!${default} $*${default}"
fn_sleep_time
}

fn_print_skip2_nl() {
echo -e "${cyan}Skip!${default} $*${default}"
fn_sleep_time
}

# Y/N Prompt
fn_prompt_yn() {
echo -e ""
Expand Down

0 comments on commit 7c0199f

Please sign in to comment.