Shebang lines with /bin/bash are not wanted.
There maybe systems, especially in the BSD world, without bash.
This commit is contained in:
parent
19d84a3d9e
commit
231fff9785
@ -85,7 +85,7 @@ installDebianPackage ()
|
||||
#
|
||||
# Use policy-rc to stop any daemons from starting.
|
||||
#
|
||||
printf '#!/bin/bash\nexit 101\n' > ${prefix}/usr/sbin/policy-rc.d
|
||||
printf '#!/bin/sh\nexit 101\n' > ${prefix}/usr/sbin/policy-rc.d
|
||||
chmod +x ${prefix}/usr/sbin/policy-rc.d
|
||||
|
||||
#
|
||||
|
||||
@ -49,7 +49,7 @@ sub checkFile
|
||||
close( INPUT );
|
||||
|
||||
# Check if it is really a shell file
|
||||
if ( $line =~ /^#! ?\/bin\/(ba)?sh/ )
|
||||
if ( $line =~ /^#! ?\/bin\/sh/ )
|
||||
{
|
||||
$isShell = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user