Properly quote scripts

This commit is contained in:
Bruno Sutic
2015-02-20 15:48:36 +01:00
parent 886b373dcd
commit bdc47273d3
4 changed files with 8 additions and 7 deletions

View File

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

View File

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