diff --git a/reinstall-esp-idf.sh b/reinstall-esp-idf.sh index f5c6849..91cbd34 100644 --- a/reinstall-esp-idf.sh +++ b/reinstall-esp-idf.sh @@ -75,7 +75,11 @@ 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) for package in "${packages[@]}"; do - if [ -z $(apt list $package --installed) ]; then + dpkg-query --show --showformat='${db:Status-Status}\n' $package 2>/dev/null + ret=$? + + echo $ret + if [ $ret -ne 0 ]; then echo "$package not installed, addded to list" inastallPackagees+=" $package" fi diff --git a/version.txt b/version.txt index c9f4a88..9b98339 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -60-rc2.5.1 \ No newline at end of file +60-rc2.5.2 \ No newline at end of file