From 98a889f987310622cb1bb554ee7ca36ce4d046ce Mon Sep 17 00:00:00 2001 From: Andrea Bonanno Date: Tue, 15 Feb 2022 17:54:15 +0100 Subject: [PATCH] update(script): makes user able to pass custom option to driver-loader curl command Signed-off-by: Andrea Bonanno --- scripts/falco-driver-loader | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index 1c9a31ed8ad..7897ef21eb2 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -517,6 +517,7 @@ print_usage() { echo " DRIVERS_REPO specify a different URL where to look for prebuilt Falco drivers" echo " DRIVER_NAME specify a different name for the driver" echo " DRIVER_INSECURE_DOWNLOAD whether you want to allow insecure downloads or not" + echo " OVERRIDE_CURL_OPTIONS specify custom options to be passed to curl command used to download Falco drivers" echo "" echo "Versions:" echo " Falco version ${FALCO_VERSION}" @@ -543,6 +544,8 @@ else FALCO_DRIVER_CURL_OPTIONS=-fsS fi +FALCO_DRIVER_CURL_OPTIONS=${OVERRIDE_CURL_OPTIONS-FALCO_DRIVER_CURL_OPTIONS} + if [[ -z "$MAX_RMMOD_WAIT" ]]; then MAX_RMMOD_WAIT=60 fi