#!/bin/bash # get folder name, and set to [dir] variable. dir=${PWD##*/} arduino-cli compile --fqbn esp32:esp32:m5stick-c --export-binaries ${dir}.ino