Skip to content

Commit

Permalink
OSX debug test bats bash4 env
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Viart committed Jun 21, 2018
1 parent b2a34ad commit 71d41a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/docopts-auto.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
mktmp() {
tmp=./tmp-docopt_auto_parse.sh
cat <<'EOF' >$tmp
#!/bin/bash
#!/usr/bin/env bash
# Usage: sometest [--opt] [--output=FILE] INFILE
source ../docopts.sh --auto "$@"
Expand Down
4 changes: 2 additions & 2 deletions tests/docopts.bats
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# vim: set et ts=4 sw=4 sts=4 ft=sh:
#
# unit test for bash helpers in docopts.sh
Expand All @@ -10,7 +10,7 @@ source ../docopts.sh
@test "docopt_get_help_string" {
tmp=./tmp_docopt_get_help_string
cat <<EOF > $tmp
#!/bin/bash
#!/usr/bin/env bash
# some test
# Usage: docopt_get_help_string $0
# docopt_get_help_string prout
Expand Down
2 changes: 1 addition & 1 deletion tests/exit_handler.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
exit_handler() {
exit_code=$?
echo "recieved exit $exit_code"
Expand Down

0 comments on commit 71d41a6

Please sign in to comment.