Skip to content

Commit dfb9a8a

Browse files
committed
wip
1 parent 361bebc commit dfb9a8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/build_boards_manager_package.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,19 @@ cat $srcdir/package/package_esp8266com_index.template.json | \
126126
# Use Github API token, must be available
127127
if [ -z "$CI_GITHUB_API_KEY" ]; then
128128
echo "curl: API key not present"
129-
echo "running: 'curl --silent -D curl-headers.txt https://api.github.com/repos/esp8266/Arduino/releases > releases.json'"
129+
echo "running: 'curl --silent -D curl-headers.txt https://api.github.com/repos/esp8266/Arduino/releases'"
130130
curl --silent -D curl-headers.txt https://api.github.com/repos/esp8266/Arduino/releases > releases.json
131131
else
132132
echo "curl: API key is present"
133-
echo "running: 'curl --silent -D curl-headers.txt -H \"Authorization: token $CI_GITHUB_API_KEY\" https://api.github.com/repos/esp8266/Arduino/releases > releases.json'"
133+
echo "running: 'curl --silent -D curl-headers.txt -H \"Authorization: token $CI_GITHUB_API_KEY\" https://api.github.com/repos/esp8266/Arduino/releases'"
134134
curl --silent -D curl-headers.txt -H "Authorization: token $CI_GITHUB_API_KEY" https://api.github.com/repos/esp8266/Arduino/releases > releases.json
135135
fi
136136

137137
# Get previous release name
138138
echo "======== >>> curl dumped header >>>"
139139
cat curl-headers.txt
140140
echo "======== <<< curl dumped header <<<"
141-
if ! grep "200 OK$" curl-headers.txt > /dev/null; then
141+
if ! grep "HTTP.*200 OK" curl-headers.txt > /dev/null; then
142142
if [ -z "$CI_GITHUB_API_KEY" ]; then
143143
echo "---- Bad moon phase, in a PR, exit successfully"
144144
exit 0

0 commit comments

Comments
 (0)