We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 33dfa8e commit abb2232Copy full SHA for abb2232
install.sh
@@ -103,7 +103,8 @@ getFile() {
103
if [ "$DOWNLOAD_TOOL" = "curl" ]; then
104
GETFILE_HTTP_STATUS_CODE=$(curl -s -w '%{http_code}' -L "$GETFILE_URL" -o "$GETFILE_FILE_PATH")
105
elif [ "$DOWNLOAD_TOOL" = "wget" ]; then
106
- wget --server-response --content-on-error -q -O "$GETFILE_FILE_PATH" "$GETFILE_URL"
+ TMP_FILE=$(mktemp)
107
+ wget --server-response --content-on-error -q -O "$GETFILE_FILE_PATH" "$GETFILE_URL" 2>"$TMP_FILE"
108
GETFILE_HTTP_STATUS_CODE=$(awk '/^ HTTP/{print $2}' "$TMP_FILE")
109
fi
110
echo "$GETFILE_HTTP_STATUS_CODE"
0 commit comments