3 if [ $# = 0 -o
"$1" = "-h" ]; then
4 echo 'usage: termux-fix-shebang <files>'
5 echo 'Rewrite shebangs in specified files for running under Termux,'
6 echo 'which is done by rewriting #!*/bin/binary to #!$PREFIX/bin/binary.'
10 sed -i
-E
"s@^#\!(.*)/bin/(.*)@#\!@TERMUX_PREFIX@/bin/\2@" $@