Skip to content

Commit

Permalink
update(docker/tester): split version guessing of Falco version
Browse files Browse the repository at this point in the history
Needed by statically linked build of Falco.

Co-Authored-By: Leonardo Di Donato <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
  • Loading branch information
leogr and leodido committed Oct 13, 2020
1 parent cd576c5 commit 54bf0cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/tester/root/usr/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ case "$CMD" in
"test")
if [ -z "$FALCO_VERSION" ]; then
echo "Automatically figuring out Falco version."
FALCO_VERSION=$("$BUILD_DIR/$BUILD_TYPE/userspace/falco/falco" --version | head -n 1 | cut -d' ' -f3 | tr -d '\r')
FALCO_VERSION_FULL=$("$BUILD_DIR/$BUILD_TYPE/userspace/falco/falco" --version)
FALCO_VERSION=$(echo "$FALCO_VERSION_FULL" | head -n 1 | cut -d' ' -f3 | tr -d '\r')
echo "Falco version: $FALCO_VERSION"
fi
if [ -z "$FALCO_VERSION" ]; then
Expand Down

0 comments on commit 54bf0cd

Please sign in to comment.