diff options
| author | Franklin Wei <git@fwei.tk> | 2015-11-21 18:27:38 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-11-21 18:27:38 -0500 |
| commit | afc3e4b88e193025e49736e545ccb7765b19d1b5 (patch) | |
| tree | efb32f2b86739e38c466ee514f2cb6338fa99fe7 /compile.sh | |
| parent | 03a7066353fad59b7c29b57baa94f84bcc5cfcda (diff) | |
| download | ducky-afc3e4b88e193025e49736e545ccb7765b19d1b5.zip ducky-afc3e4b88e193025e49736e545ccb7765b19d1b5.tar.gz ducky-afc3e4b88e193025e49736e545ccb7765b19d1b5.tar.bz2 ducky-afc3e4b88e193025e49736e545ccb7765b19d1b5.tar.xz | |
better error handling
Diffstat (limited to 'compile.sh')
| -rwxr-xr-x | compile.sh | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,4 +1,12 @@ #!/bin/sh build/unix.bin -c $1 +if [[ $? != 0 ]] +then + exit +fi build/unix.bin -t a.out +if [[ $? != 0 ]] +then + exit +fi cc a.c -Wall -lm -g -Og |