Skip to content

Commit bdc4727

Browse files
author
Bruno Sutic
committed
Properly quote scripts
1 parent 886b373 commit bdc4727

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
### master
4+
- properly quote scripts
45

56
### v3.0.0, 2015-02-20
67
- rename the plugin from `tmux-resurrect-auto` to `tmux-continuum`

continuum.tmux

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ source "$CURRENT_DIR/scripts/shared.sh"
99
save_command_interpolation="#($CURRENT_DIR/scripts/continuum_save.sh)"
1010

1111
supported_tmux_version_ok() {
12-
$CURRENT_DIR/scripts/check_tmux_version.sh "$SUPPORTED_VERSION"
12+
"$CURRENT_DIR/scripts/check_tmux_version.sh" "$SUPPORTED_VERSION"
1313
}
1414

1515
handle_tmux_automatic_start() {
16-
$CURRENT_DIR/scripts/handle_tmux_automatic_start.sh
16+
"$CURRENT_DIR/scripts/handle_tmux_automatic_start.sh"
1717
}
1818

1919
another_tmux_server_running() {
@@ -49,7 +49,7 @@ just_started_tmux_server() {
4949
}
5050

5151
start_auto_restore_in_background() {
52-
$CURRENT_DIR/scripts/continuum_restore.sh &
52+
"$CURRENT_DIR/scripts/continuum_restore.sh" &
5353
}
5454

5555
main() {

scripts/continuum_save.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source "$CURRENT_DIR/variables.sh"
77
source "$CURRENT_DIR/shared.sh"
88

99
supported_tmux_version_ok() {
10-
$CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION"
10+
"$CURRENT_DIR/check_tmux_version.sh" "$SUPPORTED_VERSION"
1111
}
1212

1313
get_interval() {
@@ -29,7 +29,7 @@ enough_time_since_last_run_passed() {
2929
fetch_and_run_tmux_resurrect_save_script() {
3030
local resurrect_save_script_path="$(get_tmux_option "$resurrect_save_path_option" "")"
3131
if [ -n "$resurrect_save_script_path" ]; then
32-
$resurrect_save_script_path "quiet" >/dev/null 2>&1 &
32+
"$resurrect_save_script_path" "quiet" >/dev/null 2>&1 &
3333
set_last_save_timestamp
3434
fi
3535
}

scripts/handle_tmux_automatic_start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ is_osx() {
1717
main() {
1818
if is_tmux_automatic_start_enabled; then
1919
if is_osx; then
20-
$CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh
20+
"$CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh"
2121
fi
2222
else
2323
if is_osx; then
24-
$CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh
24+
"$CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh"
2525
fi
2626
fi
2727
}

0 commit comments

Comments
 (0)