bash flags

This commit is contained in:
Anton-4 2023-12-16 20:11:25 +01:00
parent 60e705ed7b
commit d35987893b
No known key found for this signature in database
GPG Key ID: 0971D718C0A9B937

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
set -euxo pipefail
for file in crates/compiler/builtins/roc/*.roc; do
if grep -qE '^\s*expect' "$file"; then
cargo run --locked --release -- test "$file"