From d43ab9dd3b4e5a1ea66519796584ef3e9abfebd4 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Tue, 12 Nov 2024 13:20:38 -0700 Subject: [PATCH] aertg --- reinstall-esp-idf.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index ae73400..2203091 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -71,9 +71,11 @@ function handleSleep() { function handleCheckInstallPackages() { packages=(git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0) - i=0 + for package in "${packages[@]}"; do - which $package + if [ $(which $package) ]; then + echo "$package addded to list?" + fi done }