From d912cf0d9430e9a48b6dadab6d3889885e2eecab Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Mon, 16 Nov 2020 11:59:09 +0000 Subject: [PATCH] docs(scripts): falco-driver-loader outputs the Falco version it has been built for, also the driver version in use Both in the help/usage message and at running time. Signed-off-by: Leonardo Di Donato --- scripts/falco-driver-loader | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index 0829b367..4f5055c6 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -468,8 +468,12 @@ print_usage() { echo " --source-only skip execution and allow sourcing in another script" echo "" echo "Environment variables:" - echo "DRIVER_REPO specify a different URL where to look for prebuilt Falco drivers" - echo "DRIVER_NAME specify a different name for the driver" + echo " DRIVER_REPO specify a different URL where to look for prebuilt Falco drivers" + echo " DRIVER_NAME specify a different name for the driver" + echo "" + echo "Versions:" + echo " Falco version ${FALCO_VERSION}" + echo " Driver version ${DRIVER_VERSION}" echo "" } @@ -573,3 +577,5 @@ if [ -z "$source_only" ]; then ;; esac fi + +echo "* Running falco-driver-loader for: falco version=${FALCO_VERSION}, driver version=${DRIVER_VERSION}" \ No newline at end of file