Make 2019/karns/demo.sh make prog

Make the script try compiling the entry first. Exit if failure.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-14 06:03:22 -07:00
1 parent 4a89ac4fe2
commit 4581f98ca2
1 file changed
+3
+3
View File
@@ -5,6 +5,9 @@
# Doesn't run the program on README.md as it's longer and slower.
#
# make prog first and exit if failure
make || exit
# display prog.c to the user
echo "$ cat prog.c"
cat prog.c