diff --git a/Compiling-esp32-port-with-docker.md b/Compiling-esp32-port-with-docker.md index 6fa239f..f3079f6 100644 --- a/Compiling-esp32-port-with-docker.md +++ b/Compiling-esp32-port-with-docker.md @@ -5,13 +5,13 @@ This script can be used as a wrapper to automate the process of running the comp If you're using Windows/WSL2 and want to flash the board directly the [WSL USB Manager](https://gitlab.com/alelec/wsl-usb-gui#wsl-usb-manager) tool can simplify connecting your usb devices through to WSL. ``` bash -cat << "EOF" > ~/.local/bin +cat << "EOF" > ~/.local/bin/esp-compile #!/bin/bash SCRIPTPATH=$(readlink --canonicalize-existing "${BASH_SOURCE[0]}") # Wrapper script to build / flash esp32 boards inside the official ESP IDF docker container +# Usage: esp-compile # Examples -# esp-compile # esp-compile v5.0.4 ESP32_GENERIC /dev/ttyACM0 # esp-compile v5.2.2 ESP32_GENERIC # esp-compile v5.2.2 ESP32_GENERIC_C3 /dev/ttyACM0 @@ -74,5 +74,5 @@ fi # end of build fi # end of user fi # end of container EOF -chmod +x ~/.local/bin +chmod +x ~/.local/bin/esp-compile ``` \ No newline at end of file