5052f823d7
* Use double quotes around `"$@"` to fix invocation with arguments including spaces. * Use double quotes around `"$(dirname "$0")"` to fix invocation inside a directory path including spaces. * Use `set -e` to abort in case `cd` fails. * Use `exec` to avoid forking an unnecessary wrapper process. * Skip an unnecessary `cd` → `pwd` → `cd` dance, just use `cd`. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
5 lines
77 B
Bash
Executable File
5 lines
77 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
exec python -m websockify "$@"
|