mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 06:03:09 -05:00
eowyn.sh: set the -e option
Currently, `zig fmt` exit status is ignored, making it useless. Ensure that the script terminates early if there is an error. Print a message to stdout before executing `zig fmt`, in order to make the possible error more visible.
This commit is contained in:
parent
4b58de26d3
commit
fd6f3eebbb
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
# using the patches in this directory and convey them
|
||||
# to convalesce in the healed directory.
|
||||
#
|
||||
set -e
|
||||
|
||||
# We check ourselves before we wreck ourselves.
|
||||
if [ ! -f patches/eowyn.sh ]
|
||||
|
@ -41,7 +42,7 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
# Check the healed exercises formatting.
|
||||
echo "Looking for non-conforming code formatting..."
|
||||
zig fmt --check patches/healed
|
||||
|
||||
# Test the healed exercises. May the compiler have mercy upon us.
|
||||
|
|
Loading…
Reference in a new issue