summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0dbfe31..3039d1d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ kernel/main.o: kernel/util.h
providence.img: ${OBJ}
${CC} ${LDFLAGS} $^ ${LDLIBS} -o $@
- @du -b $@
+ test "$$(wc -c $@ | cut -f1 -d' ')" -le 29696 || { rm -f $@ ; false ; }
truncate -s 29696 $@
%.o: %.c