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