From feb4333eba74a0c106154bfc929a3d94fd1b3583 Mon Sep 17 00:00:00 2001 From: Sergei Gerasenko Date: Sat, 24 Apr 2021 23:39:31 -0500 Subject: [PATCH] Show "Saving" message only when DEBUG=2 This is logical because we're increasing verbosity by setting the value to 2. At 1, the debug is on but the user is not interrupted by the status line messages. --- scripts/continuum_save.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/continuum_save.sh b/scripts/continuum_save.sh index 778b1bd..2b27498 100755 --- a/scripts/continuum_save.sh +++ b/scripts/continuum_save.sh @@ -51,7 +51,7 @@ enough_time_since_last_run_passed() { fetch_and_run_tmux_resurrect_save_script() { local resurrect_save_script_path="$(get_tmux_option "$resurrect_save_path_option" "")" if [ -n "$resurrect_save_script_path" ]; then - if [ "$DEBUG" == "1" ]; then + if [ "$DEBUG" == "2" ]; then local log_path=$(get_log_path) log_message "Calling $resurrect_save_script_path" "$resurrect_save_script_path" >> $log_path 2>&1 &