when a script contains #! in the beginning of a line, the installer still thinks it's a shebang script
see subsonic app installer.
mv unpack program; mkdir files; cat > program/amahi-subsonic.sh <<'EOF' #!/bin/sh SUBSONIC_HOME="../files"; ...
this still trips the installer thinking this script is a self-enclosed shebang script.
the problem is this:
[10:47:35](1)hda:~$ irb irb(main):001:0> script = "sfsdf this \n#! this is a test" => "sfsdf this \n#! this is a test" irb(main):002:0> script =~ /^#!/ => 12 irb(main):003:0>
it should really only match at the very beginning of the script, not somewhere else in the beginning line of the script!
Also available in: Atom