diff options
author | Jakob Schlyter <jakob@kirei.se> | 2016-07-16 10:22:30 +0200 |
---|---|---|
committer | Jakob Schlyter <jakob@kirei.se> | 2016-07-16 10:22:30 +0200 |
commit | 63a56f4fe1cb972e87fcb8bb9150b0fa0f1306cf (patch) | |
tree | 9144307ee586db276d4bb2572dbbf01538d682d7 | |
parent | 1d2f315531969e160a0e6a017f8c9a93ae8ee432 (diff) |
usage
-rwxr-xr-x | upload.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,10 @@ #! /bin/sh HEXFILE=$1 -[ -z "$HEXFILE" ] && exit 1 + +if [ -z "$HEXFILE" ]; then + echo "usage: $0 [hexfile]" + exit 1 +fi avrdude -c usbtiny -p attiny828 -U flash:w:$HEXFILE |