1
0
mirror of synced 2026-01-22 02:05:22 +00:00

Shebang lines with /bin/bash are not wanted.

There maybe systems, especially in the BSD world, without bash.
This commit is contained in:
Axel Beckert 2010-07-23 13:28:28 +02:00
parent 19d84a3d9e
commit 231fff9785
2 changed files with 2 additions and 2 deletions

View File

@ -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
#

View File

@ -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;
}