pidcat: make shebang more portable

Distros like NixOS[1] do not have a typical /usr/bin/, and rely on shebangs
using /usr/bin/env to go to the correct binary.

Passing options to interpreters is not directly supported in env, and thus
requires passing an extra -S [2] to ensure they go through correctly.

1: https://nixos.org
2: https://jhermann.github.io/blog/linux/know-how/2020/02/28/env_with_arguments.html

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya
2020-07-11 18:33:14 +05:30
parent 2c6600dfd0
commit e5fa59974b
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/python -u #!/usr/bin/env -S python -u
''' '''
Copyright 2009, The Android Open Source Project Copyright 2009, The Android Open Source Project