Skip to content

Commit

Permalink
update(script): makes user able to pass custom option to driver-loade…
Browse files Browse the repository at this point in the history
…r curl command

Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud>
  • Loading branch information
andreabonanno committed Feb 15, 2022
1 parent 204f9ff commit 98a889f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/falco-driver-loader
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand Down

0 comments on commit 98a889f

Please sign in to comment.