mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-13 01:27:48 -04:00
Fix url_verifier
This commit is contained in:
parent
f37a8d77e2
commit
f738401cf5
1 changed files with 2 additions and 2 deletions
4
.github/actions/url_verifier.sh
vendored
4
.github/actions/url_verifier.sh
vendored
|
@ -8,7 +8,7 @@ then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36
|
USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36"
|
||||||
SCRIPT_RET=0
|
SCRIPT_RET=0
|
||||||
|
|
||||||
set -o nounset # Treat unset variables as an error
|
set -o nounset # Treat unset variables as an error
|
||||||
|
@ -28,7 +28,7 @@ function test {
|
||||||
|
|
||||||
for UNIQ_URL in ${!dict[@]} # loop urls
|
for UNIQ_URL in ${!dict[@]} # loop urls
|
||||||
do
|
do
|
||||||
CURL_RES=$(curl -si --user-agent '$(USER_AGENT)' ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
|
CURL_RES=$(curl -si --user-agent "$(USER_AGENT)" ${UNIQ_URL} 2>/dev/null| head -n 1 | cut -f 2 -d ' ')
|
||||||
RES=$?
|
RES=$?
|
||||||
|
|
||||||
if [ "${CURL_RES}" == '' -o "${CURL_RES}" != '200' ]
|
if [ "${CURL_RES}" == '' -o "${CURL_RES}" != '200' ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue