From 8f415b5312de5d9568610095ec8ff9fe805feeb1 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Fri, 20 Jan 2023 16:53:31 +0100 Subject: [PATCH] fix(scripts): fixed incorrect bash var expansion Signed-off-by: Roberto Scolaro --- scripts/falco-driver-loader | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/falco-driver-loader b/scripts/falco-driver-loader index 7086b886bfc..f7034dd3baa 100755 --- a/scripts/falco-driver-loader +++ b/scripts/falco-driver-loader @@ -281,7 +281,7 @@ load_kernel_module_download() { local URL=$(echo "${1}/${DRIVER_VERSION}/${ARCH}/${FALCO_KERNEL_MODULE_FILENAME}" | sed s/+/%2B/g) echo "* Trying to download a prebuilt ${DRIVER_NAME} module from ${URL}" - if curl -L --create-dirs "${FALCO_DRIVER_CURL_OPTIONS}" -o "${HOME}/.falco/${DRIVER_VERSION}/${ARCH}/${FALCO_KERNEL_MODULE_FILENAME}" "${URL}"; then + if curl -L --create-dirs ${FALCO_DRIVER_CURL_OPTIONS} -o "${HOME}/.falco/${DRIVER_VERSION}/${ARCH}/${FALCO_KERNEL_MODULE_FILENAME}" "${URL}"; then echo "* Download succeeded" chcon -t modules_object_t "${HOME}/.falco/${DRIVER_VERSION}/${ARCH}/${FALCO_KERNEL_MODULE_FILENAME}" > /dev/null 2>&1 || true mkdir -p /lib/modules/${KERNEL_RELEASE}/kernel/drivers/falco/ || true @@ -522,7 +522,7 @@ load_bpf_probe_compile() { mkdir -p /tmp/kernel cd /tmp/kernel || exit cd "$(mktemp -d -p /tmp/kernel)" || exit - if ! curl -L -o kernel-sources.tgz --create-dirs "${FALCO_DRIVER_CURL_OPTIONS}" "${BPF_KERNEL_SOURCES_URL}"; then + if ! curl -L -o kernel-sources.tgz --create-dirs ${FALCO_DRIVER_CURL_OPTIONS} "${BPF_KERNEL_SOURCES_URL}"; then >&2 echo "Unable to download the kernel sources" return fi @@ -564,7 +564,7 @@ load_bpf_probe_download() { echo "* Trying to download a prebuilt eBPF probe from ${URL}" - if ! curl -L --create-dirs "${FALCO_DRIVER_CURL_OPTIONS}" -o "${HOME}/.falco/${DRIVER_VERSION}/${ARCH}/${BPF_PROBE_FILENAME}" "${URL}"; then + if ! curl -L --create-dirs ${FALCO_DRIVER_CURL_OPTIONS} -o "${HOME}/.falco/${DRIVER_VERSION}/${ARCH}/${BPF_PROBE_FILENAME}" "${URL}"; then >&2 echo "Unable to find a prebuilt ${DRIVER_NAME} eBPF probe" return 1 fi