From 1acd25cff2a787e51167226683f9e96f1573c0d5 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Thu, 19 Feb 2015 13:53:06 +0100 Subject: [PATCH] Change restore script function name --- scripts/resurrect_auto_restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/resurrect_auto_restore.sh b/scripts/resurrect_auto_restore.sh index b0da014..c956356 100755 --- a/scripts/resurrect_auto_restore.sh +++ b/scripts/resurrect_auto_restore.sh @@ -5,7 +5,7 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "$CURRENT_DIR/helpers.sh" source "$CURRENT_DIR/variables.sh" -auto_restore_not_disabled() { +auto_restore_enabled() { local auto_restore_value="$(get_tmux_option "$auto_restore_option" "$auto_restore_default")" [ "$auto_restore_value" == "on" ] && [ ! -f "$auto_restore_halt_file" ] } @@ -20,7 +20,7 @@ fetch_and_run_tmux_resurrect_restore_script() { } main() { - if auto_restore_not_disabled; then + if auto_restore_enabled; then fetch_and_run_tmux_resurrect_restore_script fi }