Skip to content

Commit 05e236f

Browse files
fix(stop) stop will clear tmux text before entering stop command (#3142)
Tmux will ENTER before using stop command to clear any text entered in teh console
1 parent 37d9d8e commit 05e236f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lgsm/functions/command_stop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn_stop_graceful_cmd(){
4343
fn_print_dots "Graceful: sending \"${1}\""
4444
fn_script_log_info "Graceful: sending \"${1}\""
4545
# Sends specific stop command.
46-
tmux send -t "${sessionname}" "${1}" ENTER > /dev/null 2>&1
46+
tmux send -t "${sessionname}" ENTER "${1}" ENTER > /dev/null 2>&1
4747
# Waits up to ${seconds} seconds giving the server time to shutdown gracefully.
4848
for ((seconds=1; seconds<=${2}; seconds++)); do
4949
check_status.sh

0 commit comments

Comments
 (0)