Skip to content

Commit

Permalink
tests/testX.sh: remove Bash'ism
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Aug 13, 2024
1 parent d003e51 commit 49d7a6e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions contrib/tests/shpproj.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
#!/bin/sh

readonly SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
set -eu

readonly SCRIPTDIR=$(dirname "$0")

"${SHPCREATE:-$top_builddir/shpcreate}" "test" point

Expand Down
4 changes: 2 additions & 2 deletions tests/test1.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh

set -eu

readonly SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
readonly SCRIPTDIR=$(dirname "$0")
readonly EXPECT="${1:-$SCRIPTDIR/expect1.out}"
readonly EG_DATA="${2:-$SCRIPTDIR/shape_eg_data}"

Expand Down
4 changes: 2 additions & 2 deletions tests/test2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh

readonly SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
readonly SCRIPTDIR=$(dirname "$0")
readonly EXPECT="${1:-$SCRIPTDIR/expect2.out}"

for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13; do
Expand Down
4 changes: 2 additions & 2 deletions tests/test3.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

#
# Use example programs to create a very simple dataset that
Expand All @@ -7,7 +7,7 @@

set -eu

readonly SCRIPTDIR=$(dirname "${BASH_SOURCE[0]}")
readonly SCRIPTDIR=$(dirname "$0")
readonly EXPECT="${1:-$SCRIPTDIR/expect3.out}"

{
Expand Down

0 comments on commit 49d7a6e

Please sign in to comment.