From 1721197934f4ae8dc24ee61399588903f305347f Mon Sep 17 00:00:00 2001 From: Jakob Naucke Date: Fri, 21 Jan 2022 12:49:56 +0100 Subject: [PATCH] ci: Pass function arguments in static-checks.sh e.g. when called from the tests repo Fixes: #3525 Signed-off-by: Jakob Naucke --- ci/lib.sh | 2 +- ci/static-checks.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/lib.sh b/ci/lib.sh index 3c64db5952..02e43aec3d 100644 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -36,7 +36,7 @@ run_static_checks() # Make sure we have the targeting branch git remote set-branches --add origin "${branch}" git fetch -a - bash "$tests_repo_dir/.ci/static-checks.sh" "github.com/kata-containers/kata-containers" + bash "$tests_repo_dir/.ci/static-checks.sh" "$@" } run_go_test() diff --git a/ci/static-checks.sh b/ci/static-checks.sh index df4b6df313..4297206d82 100755 --- a/ci/static-checks.sh +++ b/ci/static-checks.sh @@ -9,4 +9,4 @@ set -e cidir=$(dirname "$0") source "${cidir}/lib.sh" -run_static_checks +run_static_checks "${@:-github.com/kata-containers/kata-containers}"