File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 95
95
sdkconfig_path="framework-arduinoespressif32/tools/esp32-arduino-libs/$mcu/sdkconfig"
96
96
if [ -f "$sdkconfig_path" ]; then
97
97
echo "Updating $sdkconfig_path with firmware version: $FIRMWARE_VERSION"
98
- # Remove existing CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET line if it exists
99
- sed -i '/^CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET/d' "$sdkconfig_path"
100
- # Add new CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET line
101
- echo "CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET=\"$FIRMWARE_VERSION\"" >> "$sdkconfig_path"
98
+ # Remove existing CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET line and add new one at the beginning
99
+ sed -i -e '/^CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET/d' -e "1i CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET=\"$FIRMWARE_VERSION\"" "$sdkconfig_path"
102
100
else
103
101
echo "Warning: sdkconfig file not found at $sdkconfig_path"
104
102
fi
You can’t perform that action at this time.
0 commit comments