Skip to content

Commit 90f4a00

Browse files
authored
Merge pull request #41 from neynt/master
Make user systemd dir if it doesn't exist
2 parents 6367708 + 6ed3078 commit 90f4a00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/handle_tmux_automatic_start/systemd_enable.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ main() {
4949
local systemd_tmux_server_start_cmd="$(get_tmux_option "${systemd_tmux_server_start_cmd_option}" "${systemd_tmux_server_start_cmd_default}" )"
5050
local tmux_start_script_path="${CURRENT_DIR}/linux_start_tmux.sh"
5151
local systemd_unit_file=$(template "${tmux_start_script_path}" "${options}")
52+
mkdir -p "$(dirname ${systemd_unit_file_path})"
5253
echo "$systemd_unit_file" > "${systemd_unit_file_path}"
5354
enable_tmux_unit_on_boot
5455
}

0 commit comments

Comments
 (0)