This commit is contained in:
2024-11-12 13:50:45 -07:00
parent e9d3d52f40
commit 567eeacd6c
2 changed files with 13 additions and 7 deletions
+12 -6
View File
@@ -70,22 +70,27 @@ function handleSleep() {
}
function handleCheckInstallPackages() {
inastallPackagees=""
writeToLog "Handling check and install packages (function ran)"
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
dpkg-query --show --showformat='${db:Status-Status}\n' $package >/dev/null
dpkg-query --show --showformat="$package \${db:Status-Status}" $package 2>/dev/null
ret=$?
echo $ret
if [ $ret -ne 0 ]; then
echo "$package not installed, addded to list"
inastallPackagees+=" $package"
installPackagees+=" $package"
fi
done
echo $inastallPackagees
if [ ! -z $installPackagees ];
writeToLog "Missing packages found! Installing: $installPackagees"
sudo apt install -y "$installPackagees"
returnStatus
else
writeToLog "No pissing packages found, continuing"
fi
}
function handleCustomBins() {
@@ -311,8 +316,9 @@ function handleStart() {
writeToLog "\tVersion: ${scriptVers}\n"
fi
# run environment sanity check
# run environment sanity checks
handleCheckEspIdf
handleCheckInstallPackages
writeToLog "\nvars:\n\tuser: $USER\n\tscriptVers: $scriptVers\n\tversionData: $versionData\n\tlog: $log\n\tsleepMins: $sleepMins\n\tinstallDir: $installDir\n\tgitJobs: $gitJobs\n\tgitBranch: $gitBranch\n\tgitCmd: $gitCmd\n\trunningDir: $runningDir\n\tidfDir: $idfDir\n\tespressifLocation: $espressifLocation\n\tcustomBinLocation: $customBinLocation\n\tcustomBinFrom: $customBinFrom\n\tinstallCmd: $installCmd\n\ttoolsInstallCmd: $toolsInstallCmd\n\trcFile: $rcFile\n\t(envvar) ESPIDF_INSTALLDIR: $installDirEnvvar\n"
}
+1 -1
View File
@@ -1 +1 @@
60-rc2.5.2
60-rc2.6