u
This commit is contained in:
@@ -58,12 +58,21 @@ execute_script() {
|
|||||||
echo "execute: ${file} ${parameter_1} ${parameter_2}"
|
echo "execute: ${file} ${parameter_1} ${parameter_2}"
|
||||||
resource_url=${scripts_url}/${file}
|
resource_url=${scripts_url}/${file}
|
||||||
|
|
||||||
if ! wget --no-check-certificate -q --method=HEAD ${resource_url};
|
if ! wget -q --method=HEAD ${resource_url};
|
||||||
then
|
then
|
||||||
echo "error: unable to load '${resource_url}'"
|
echo "error: unable to load '${resource_url}'"
|
||||||
echo ""
|
echo ""
|
||||||
wget -v ${resource_url}
|
wget -v ${resource_url}
|
||||||
exit 1
|
echo ""
|
||||||
|
echo "if the error is caused by an untrusted certificate, you can continue ignoring the untrusted cert. do you want to do that? (y/n)"
|
||||||
|
read user_input
|
||||||
|
if [[ ${user_input} == "y" ]]; then
|
||||||
|
echo "ok. we will continue with wget's '--no-check-certificate' flag activated."
|
||||||
|
echo ""
|
||||||
|
else
|
||||||
|
echo "ok. we will stop here."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget --no-check-certificate -q ${resource_url} -O /tmp/${file}
|
wget --no-check-certificate -q ${resource_url} -O /tmp/${file}
|
||||||
|
|||||||
Reference in New Issue
Block a user