diff --git a/script/catmux_create_session b/script/catmux_create_session index 6fed047..ab6b091 100755 --- a/script/catmux_create_session +++ b/script/catmux_create_session @@ -112,6 +112,9 @@ def main(): command = ["tmux", "-L", args.server_name] if args.tmux_config: tmux_config = args.tmux_config + if not os.path.exists(tmux_config): + print("Given tmux_config file does not exist") + sys.exit(1) elif os.path.exists(os.path.expanduser("~/.tmux.conf")): tmux_config = os.path.expanduser("~/.tmux.conf") elif os.path.exists("/etc/tmux.conf"):