mirror of
https://github.com/Dasharo/scripts.git
synced 2026-06-13 10:16:13 -07:00
Attempt to detect and work around expired CrOS certs
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user