filter stdout for compiling as well

This commit is contained in:
Lunarmagpie 2023-03-13 00:24:15 -04:00
parent 8be44bd99c
commit 28a29ca7ed
2 changed files with 3 additions and 1 deletions

View file

@ -12,4 +12,5 @@ shift
echo "$@" > compile_args echo "$@" > compile_args
cd project cd project
gleam build "$@" # Awk is used to remove lines from the output that don't help for the piston output.
gleam build "$@" | awk "NR>=4"

View file

@ -2,4 +2,5 @@
shift shift
cd project cd project
# Awk is used to remove lines from the output that don't help for the piston output.
gleam run $(cat ../compile_args 2> /dev/null) -- "$@" | awk "NR>=4" gleam run $(cat ../compile_args 2> /dev/null) -- "$@" | awk "NR>=4"