1
0
mirror of https://github.com/hatlabs/SH-ESP32-test-jig.git synced 2025-05-16 07:10:19 -07:00
2022-02-15 09:14:33 +02:00

19 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
shopt -s inherit_errexit
SERIAL_DEV=/dev/tty.usbserial-310
while true; do
echo "Insert device."
if [ -c $SERIAL_DEV ]; then
pio run -e esp32dev -t upload
echo "Done. Remove device."
while [ -c $SERIAL_DEV ] ; do
sleep 1
done
fi
sleep 1
done