diff options
Diffstat (limited to 'upload.sh')
-rw-r--r-- | upload.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,4 +1,8 @@ BOARD="arduino:avr:uno" PORT=$(arduino-cli board list | grep dev | grep -o '^\S*') +if [ -z $PORT ]; +then + return "Failed to find board" +fi arduino-cli compile -b $BOARD arduino-cli upload -p $PORT -b $BOARD |