Attempt to detect and work around expired CrOS certs

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Matt DeVillier
2021-10-04 17:07:33 -05:00
parent 87f781c782
commit b616ab38f6
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ else
cd /tmp
fi
#check for cmd line param
if [[ "$1" = "-k" ]]; then
#check for cmd line param, expired CrOS certs
if ! curl -sLo /dev/null https://mrchromebox.tech/index.html || [[ "$1" = "-k" ]]; then
export CURL="curl -k"
else
export CURL="curl"
+2 -2
View File
@@ -22,8 +22,8 @@ else
cd /tmp
fi
#check for cmd line param
if [[ "$1" = "-k" ]]; then
#check for cmd line param, expired CrOS certs
if ! curl -sLo /dev/null https://mrchromebox.tech/index.html || [[ "$1" = "-k" ]]; then
export CURL="curl -k"
else
export CURL="curl"
+2 -2
View File
@@ -26,8 +26,8 @@ else
cd /tmp
fi
#check for cmd line param
if [[ "$1" = "-k" ]]; then
#check for cmd line param, expired CrOS certs
if ! curl -sLo /dev/null https://mrchromebox.tech/index.html || [[ "$1" = "-k" ]]; then
export CURL="curl -k"
else
export CURL="curl"