aboutsummaryrefslogtreecommitdiff
path: root/bin/flash-tiny1616.sh
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-07 11:04:34 -0700
committerSelene ToyKeeper2023-11-07 11:04:34 -0700
commit96bb6aeb178182c95558c5157b6ddfaecfceb785 (patch)
tree6cd898456b8754e60d39f51d98e55b6cb895a01f /bin/flash-tiny1616.sh
parentMerge branch 'pull15' into trunk (diff)
downloadanduril-96bb6aeb178182c95558c5157b6ddfaecfceb785.tar.gz
anduril-96bb6aeb178182c95558c5157b6ddfaecfceb785.tar.bz2
anduril-96bb6aeb178182c95558c5157b6ddfaecfceb785.zip
shell script cleanup (fix lint warnings, remove unused scripts)
Diffstat (limited to '')
-rwxr-xr-xbin/flash-tiny1616.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/flash-tiny1616.sh b/bin/flash-tiny1616.sh
index 44d716c..3ad37b9 100755
--- a/bin/flash-tiny1616.sh
+++ b/bin/flash-tiny1616.sh
@@ -1,5 +1,5 @@
-#/bin/sh
-FIRMWARE=$1
+#!/usr/bin/env sh
+FIRMWARE="$1"
if [ -z "$AVRDUDE_TTYUSB" ]; then AVRDUDE_TTYUSB=/dev/ttyUSB0 ; fi
# In your shell config:
@@ -7,8 +7,8 @@ if [ -z "$AVRDUDE_TTYUSB" ]; then AVRDUDE_TTYUSB=/dev/ttyUSB0 ; fi
# export AVRDUDE_CONF="-C$HOME/path/to/jtag2updi/avrdude.conf"
# export AVRDUDE_TTYUSB="/dev/ttyUSB2"
-avrdude $AVRDUDE_CONF \
+avrdude "$AVRDUDE_CONF" \
-c jtag2updi \
- -P $AVRDUDE_TTYUSB \
+ -P "$AVRDUDE_TTYUSB" \
-p t1616 \
- -u -Uflash:w:$FIRMWARE
+ -u -Uflash:w:"$FIRMWARE"