From 96bb6aeb178182c95558c5157b6ddfaecfceb785 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 7 Nov 2023 11:04:34 -0700 Subject: shell script cleanup (fix lint warnings, remove unused scripts) --- bin/flash-tiny1616.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/flash-tiny1616.sh') 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" -- cgit v1.2.3