From 15116026069a56045edba5021f592d3d9ec5da5b Mon Sep 17 00:00:00 2001 From: committer Date: Fri, 31 May 2024 13:20:40 -0500 Subject: [PATCH] u --- scripts/curae.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/curae.sh b/scripts/curae.sh index 52a3b6c..6a82b83 100644 --- a/scripts/curae.sh +++ b/scripts/curae.sh @@ -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}