mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Fix kitty_exe() being executed when the script doesn't have shebang
This commit is contained in:
parent
3dfdb3ac89
commit
b47711e23a
1 changed files with 1 additions and 1 deletions
|
|
@ -389,7 +389,7 @@ class Tab: # {{{
|
|||
line = f.read(4096).splitlines()[0]
|
||||
cmd += shlex.split(line) + [old_exe]
|
||||
else:
|
||||
cmd += [resolved_shell(get_options())[0], cmd[0]]
|
||||
cmd += [resolved_shell(get_options())[0], old_exe]
|
||||
if cmd_rest:
|
||||
cmd += cmd_rest
|
||||
fenv: Dict[str, str] = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue