mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-30 11:13:17 +08:00
Use -S flag for /usr/bin/env
Because of using `-O` flag for `python3.7` binary, it returns the below error: ``` $ ./bombsquad_server /usr/bin/env: ‘python3.7 -O’: No such file or directory /usr/bin/env: use -[v]S to pass options in shebang lines ```
This commit is contained in:
parent
e752a7dbb3
commit
3c97a6904f
@ -62,7 +62,7 @@ def stage_server_file() -> None:
|
||||
lines = infile.read().splitlines()
|
||||
if mode == 'release':
|
||||
lines[0] = replace_one(lines[0], '#!/usr/bin/env python3.7',
|
||||
'#!/usr/bin/env python3.7 -O')
|
||||
'#!/usr/bin/env -S python3.7 -O')
|
||||
with open(outfilename, 'w') as outfile:
|
||||
outfile.write('\n'.join(lines) + '\n')
|
||||
subprocess.run(['chmod', '+x', outfilename], check=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user