@@ -4,5 +4,5 @@ os:
|
|||||||
- linux
|
- linux
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- shellcheck -s bash --exclude=SC2034,SC2154 <(awk '/```sh/{f=1;next}/```/{f=0}f' README.md)
|
- shellcheck -s bash --exclude=SC2034,SC2154 <(awk '/```sh$/{f=1;next}/```/{f=0}f' README.md)
|
||||||
- ./test.sh
|
- ./test.sh
|
||||||
|
|||||||
2
test.sh
2
test.sh
@@ -138,7 +138,7 @@ assert_equals() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
source <(awk '/```sh/{f=1;next}/```/{f=0}f' README.md) 2>/dev/null
|
source <(awk '/```sh$/{f=1;next}/```/{f=0}f' README.md) 2>/dev/null
|
||||||
|
|
||||||
head="-> Running tests on the Pure Bash Bible.."
|
head="-> Running tests on the Pure Bash Bible.."
|
||||||
printf '\n%s\n%s\n' "$head" "${head//?/-}"
|
printf '\n%s\n%s\n' "$head" "${head//?/-}"
|
||||||
|
|||||||
Reference in New Issue
Block a user