From 280f9bdffba17ecf4c7325a06ba82a56fc777a14 Mon Sep 17 00:00:00 2001 From: mattkatz Date: Thu, 20 Jan 2022 18:28:17 -0500 Subject: [PATCH] switch from which to command -v for tmux invoke command -v is posix and on all systems, which isn't Of course, this is probably a quibble as anything that has systemd on it probably has which. --- scripts/handle_tmux_automatic_start/systemd_enable.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/handle_tmux_automatic_start/systemd_enable.sh b/scripts/handle_tmux_automatic_start/systemd_enable.sh index dcbc54e..77e24eb 100755 --- a/scripts/handle_tmux_automatic_start/systemd_enable.sh +++ b/scripts/handle_tmux_automatic_start/systemd_enable.sh @@ -11,7 +11,7 @@ template() { local options="$@" local content="" local resurrect_save_script_path="$(get_tmux_option "$resurrect_save_path_option" "$(realpath ${CURRENT_DIR}/../../../tmux-resurrect/scripts/save.sh)")" - local tmux_path="$(which tmux)" + local tmux_path="$(command -v tmux)" read -r -d '' content <<-EOF [Unit]