fix: ignore ESP-IDF export.sh non-zero exit to prevent container crash
The openocd-esp32 tool fails with exit code 127 due to missing libusb-1.0.so.0 in the runtime image. With set -e, this caused the entrypoint to exit before starting uvicorn and nginx, putting the container in a restart loop. Adding || true allows the ESP-IDF environment to be sourced while tolerating the non-critical openocd warning. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>pull/90/head^2
parent
4b8e342a71
commit
8cff52bb2e
|
|
@ -22,7 +22,7 @@ arduino-cli core install rp2040:rp2040 2>/dev/null || true
|
|||
# If ESP-IDF is not available, fall back to arduino-cli ESP32 core.
|
||||
if [ -f /opt/esp-idf/export.sh ]; then
|
||||
echo "🔧 Sourcing ESP-IDF environment..."
|
||||
. /opt/esp-idf/export.sh
|
||||
. /opt/esp-idf/export.sh || true
|
||||
echo "✅ ESP-IDF $(cat /opt/esp-idf/version.txt 2>/dev/null || echo 'unknown') ready"
|
||||
else
|
||||
echo "⚠️ ESP-IDF not found — falling back to arduino-cli for ESP32"
|
||||
|
|
|
|||
Loading…
Reference in New Issue