From 231fff97858749ec9da993e33325f2272ef963a3 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Fri, 23 Jul 2010 13:28:28 +0200 Subject: [PATCH] Shebang lines with /bin/bash are not wanted. There maybe systems, especially in the BSD world, without bash. --- hooks/common.sh | 2 +- t/shell-syntax.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/common.sh b/hooks/common.sh index 131dce1..e768ee6 100755 --- a/hooks/common.sh +++ b/hooks/common.sh @@ -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 # diff --git a/t/shell-syntax.t b/t/shell-syntax.t index 836eb45..0c5b3dd 100755 --- a/t/shell-syntax.t +++ b/t/shell-syntax.t @@ -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; }