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.
pull/49/head
Sergei Gerasenko 2021-04-24 23:39:31 -05:00
parent a9785b4e2d
commit feb4333eba
1 changed files with 1 additions and 1 deletions

View File

@ -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 &