Skip to content

Commit

Permalink
Now working in dash shell
Browse files Browse the repository at this point in the history
  • Loading branch information
richeney committed Oct 20, 2020
1 parent 756cf9f commit 9e1a851
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/check-test-package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env sh

files=$(find . | egrep "/azurerm/internal/services/[a-z]+/[a-z_]+(resource|data_source)[a-z_]+\.go$" | egrep "test.go")
error=false
Expand All @@ -7,8 +7,7 @@ echo "==> Checking that acceptance test packages are used..."

for f in $files; do
line=$(head -n 1 $f)
regex="_test$"
if [[ ! $line =~ $regex ]]; then
if [ "$line" = "${line%%_test}" ]; then
echo $f
error=true
fi
Expand Down

0 comments on commit 9e1a851

Please sign in to comment.