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 @@ def launch_child(
|
|||
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…
Reference in a new issue