Skip to content

Commit 115bcd5

Browse files
infertuxtomeon
authored andcommitted
Fix bugs introduced in #72
On most OS, shebangs can only specify a single parameter.
1 parent 74a3f56 commit 115bcd5

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

lib/bashcov/detective.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class Detective
88
# [Set<String>] Basenames of shell executables
99
SHELL_BASENAMES = Set.new(%w[bash sh ash dash]).freeze
1010

11-
# [Set<String>] Basenames of executables commonly used to +exec+ other
12-
# processes, including shells
13-
OTHER_BASENAMES = Set.new(%w[env]).freeze
14-
1511
# [Set<String>] Filename extensions commonly used for shell scripts
1612
SHELLSCRIPT_EXTENSIONS = Set.new(%w[.bash .sh]).freeze
1713

spec/install_bash.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env bash -ex
1+
#!/usr/bin/env bash
2+
3+
set -ex
24

35
if [ -z $INSTALL_BASH_VERSION ]; then
46
echo "No \$INSTALL_BASH_VERSION, using default Bash"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/usr/bin/env bash -eux
1+
#!/usr/bin/env -S bash -eux
22

33
echo "Hello from /bin/bash -eux!"

0 commit comments

Comments
 (0)