first commit
This commit is contained in:
8
flash.sh
Executable file
8
flash.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
if [ -z "$1" ]; then
|
||||
echo "usage: flash.sh <config.yaml> [/dev/tty-usb-device]"
|
||||
elif [ -z "$2" ]; then
|
||||
podman run --rm --privileged -v "${PWD}":/config -it ghcr.io/esphome/esphome run $1
|
||||
else
|
||||
podman run --rm --privileged -v "${PWD}":/config --device=$2 -it ghcr.io/esphome/esphome run $1
|
||||
fi
|
Reference in New Issue
Block a user