Skip to content

Commit ae1bfb5

Browse files
committed
Fix script and zip paths
1 parent 4e71866 commit ae1bfb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tools/push-to-arduino.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ $LIBS_HAS_COMMIT == "0" ]; then
112112
# ToDo: this URL needs to get into Arduino's package.json
113113

114114
# Download the file
115-
filename=$(basename "$IDF_LIBS_DL_URL")
115+
filename="esp32-arduino-libs-$IDF_LIBS_COMMIT.zip"
116116
curl -s -O "$IDF_LIBS_DL_URL"
117117

118118
# Check if the download was successful
@@ -136,6 +136,7 @@ if [ $LIBS_HAS_COMMIT == "0" ]; then
136136
echo "Size: $size bytes"
137137
echo "SHA-256: $sha256sum"
138138
echo "JSON: $AR_OUT/package_esp32_index.template.json"
139+
cd "$AR_ROOT"
139140
python3 tools/add_sdk_json.py -j "$AR_OUT/package_esp32_index.template.json" -n "esp32-arduino-libs" -v "$LIBS_VERSION" -u "$IDF_LIBS_DL_URL" -f "$filename" -s "$size" -c "$sha256sum"
140141
if [ $? -ne 0 ]; then exit 1; fi
141142

0 commit comments

Comments
 (0)