From bdc47273d3eab3914910ac963bbedea8635f1b29 Mon Sep 17 00:00:00 2001 From: Bruno Sutic Date: Fri, 20 Feb 2015 15:48:36 +0100 Subject: [PATCH] Properly quote scripts --- CHANGELOG.md | 1 + continuum.tmux | 6 +++--- scripts/continuum_save.sh | 4 ++-- scripts/handle_tmux_automatic_start.sh | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45958cd..c4462e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ### master +- properly quote scripts ### v3.0.0, 2015-02-20 - rename the plugin from `tmux-resurrect-auto` to `tmux-continuum` diff --git a/continuum.tmux b/continuum.tmux index 965b93f..ec20856 100755 --- a/continuum.tmux +++ b/continuum.tmux @@ -9,11 +9,11 @@ source "$CURRENT_DIR/scripts/shared.sh" save_command_interpolation="#($CURRENT_DIR/scripts/continuum_save.sh)" supported_tmux_version_ok() { - $CURRENT_DIR/scripts/check_tmux_version.sh "$SUPPORTED_VERSION" + "$CURRENT_DIR/scripts/check_tmux_version.sh" "$SUPPORTED_VERSION" } handle_tmux_automatic_start() { - $CURRENT_DIR/scripts/handle_tmux_automatic_start.sh + "$CURRENT_DIR/scripts/handle_tmux_automatic_start.sh" } another_tmux_server_running() { @@ -49,7 +49,7 @@ just_started_tmux_server() { } start_auto_restore_in_background() { - $CURRENT_DIR/scripts/continuum_restore.sh & + "$CURRENT_DIR/scripts/continuum_restore.sh" & } main() { diff --git a/scripts/continuum_save.sh b/scripts/continuum_save.sh index 850241b..c85f68a 100755 --- a/scripts/continuum_save.sh +++ b/scripts/continuum_save.sh @@ -7,7 +7,7 @@ source "$CURRENT_DIR/variables.sh" source "$CURRENT_DIR/shared.sh" supported_tmux_version_ok() { - $CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION" + "$CURRENT_DIR/check_tmux_version.sh" "$SUPPORTED_VERSION" } get_interval() { @@ -29,7 +29,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 - $resurrect_save_script_path "quiet" >/dev/null 2>&1 & + "$resurrect_save_script_path" "quiet" >/dev/null 2>&1 & set_last_save_timestamp fi } diff --git a/scripts/handle_tmux_automatic_start.sh b/scripts/handle_tmux_automatic_start.sh index 5697aa5..35acae9 100755 --- a/scripts/handle_tmux_automatic_start.sh +++ b/scripts/handle_tmux_automatic_start.sh @@ -17,11 +17,11 @@ is_osx() { main() { if is_tmux_automatic_start_enabled; then if is_osx; then - $CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh + "$CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh" fi else if is_osx; then - $CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh + "$CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh" fi fi }