diff --git a/compile.sh b/compile.sh index a742e4a..ec6a064 100755 --- a/compile.sh +++ b/compile.sh @@ -1,3 +1,8 @@ #!/bin/bash -arduino-cli compile --fqbn esp32:esp32:m5stick-c --export-binaries M5StickCPlus_FactoryTest2022.ino + +# arduino-cli compile --fqbn esp32:esp32:m5stick-c --export-binaries M5StickCPlus_FactoryTest2022.ino + +# get folder name, and set to [dir] variable. +dir=${PWD##*/} +arduino-cli compile --fqbn esp32:esp32:m5stick-c --export-binaries ${dir}.ino