Merge pull request from ArturKlauser/use-shellcheck-on-yourself

Use shellcheck on yourself
This commit is contained in:
Vidar Holen 2020-04-01 18:43:26 -07:00 committed by GitHub
commit a9c04e8a37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,6 @@ fi
for i in 1 2
do
last=$(grep -hv "^prop" ./**/*.hs | grep -Ewo "$i[0-9]{3}" | sort -n | tail -n 1)
last=$(grep -hv "^prop" ./**/*.hs | grep -Ewo "${i}[0-9]{3}" | sort -n | tail -n 1)
echo "Next ${i}xxx: $((last+1))"
done

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
# shellcheck disable=SC2257
failed=0
fail() {