fix(docker): prevent variable expansion with FALCO_DRIVER_LOADER_OPTIONS

Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
Luca Guerra 2023-09-07 14:01:04 +00:00 committed by poiana
parent dae36c798a
commit 37ce18f457

View File

@ -27,7 +27,9 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
ln -s "$i" "/usr/src/$base" ln -s "$i" "/usr/src/$base"
done done
falco_driver_loader_option_arr=($FALCO_DRIVER_LOADER_OPTIONS) # convert the optional space-separated env variable FALCO_DRIVER_LOADER_OPTIONS to array, prevent
# shell expansion and use it as argument list for falco-driver-loader
read -a falco_driver_loader_option_arr <<< $FALCO_DRIVER_LOADER_OPTIONS
/usr/bin/falco-driver-loader "${falco_driver_loader_option_arr[@]}" /usr/bin/falco-driver-loader "${falco_driver_loader_option_arr[@]}"
fi fi