diff --git a/lib.sh b/lib.sh index 5090f6e..820641d 100644 --- a/lib.sh +++ b/lib.sh @@ -6,20 +6,20 @@ then echo "esptool.py" else - if ! command -v py &> /dev/null + if ! command -v py.exe &> /dev/null then - echo "esptool.py nor py could not be found. Please install it first." + echo "esptool.py nor py.exe could not be found. Please install it first." exit 1 fi # check if esptool is installed as a module - if py -m esptool --help &> /dev/null + if py.exe -m esptool --help &> /dev/null then - echo "py -m esptool" + echo "py.exe -m esptool" else echo "install esptool module for python first." - py -m pip install esptool + py.exe -m pip install esptool fi - echo "py -m esptool" + echo "py.exe -m esptool" fi }