Modify idf.sh to automatically find the hash of the image

This commit is contained in:
Andreas Tsouchlos 2023-11-25 17:37:01 +01:00
parent da6a2d9d28
commit acb90918fd
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ Make sure the `USB_GUID` and `USB_DEV` in `idf.py` have the correct values.
1. Build the docker image
```bash
$ sudo docker build . --tag hyperlink
$ docker build .
```
2. Compile the project

2
idf.sh
View File

@ -35,4 +35,4 @@ done
#
docker run ${DEVICE_FLAGS} --rm --user $(id -u):${USB_GID} -v $PWD:/project -w /project -it hyperlink idf.py $@
docker run ${DEVICE_FLAGS} --rm --user $(id -u):${USB_GID} -v $PWD:/project -w /project -it $(docker build -q .) idf.py $@