This commit is contained in:
committer
2024-05-31 13:20:40 -05:00
parent 0e4d9c0dae
commit 1511602606

View File

@@ -58,12 +58,21 @@ execute_script() {
echo "execute: ${file} ${parameter_1} ${parameter_2}"
resource_url=${scripts_url}/${file}
if ! wget --no-check-certificate -q --method=HEAD ${resource_url};
if ! wget -q --method=HEAD ${resource_url};
then
echo "error: unable to load '${resource_url}'"
echo ""
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
wget --no-check-certificate -q ${resource_url} -O /tmp/${file}