From: Kienan Stewart Date: Tue, 9 Jul 2024 13:19:39 +0000 (-0400) Subject: jjb: Skip gerrit lttng-modules checkouts for non-root users X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=7c05b59f9a0be833041f3c8d5e175358d9ceda02;p=lttng-ci.git jjb: Skip gerrit lttng-modules checkouts for non-root users Change-Id: I9e43b7f944e145705ad592b65eefab466902ac22 Signed-off-by: Kienan Stewart --- diff --git a/scripts/lttng-tools/gerrit-depends-on.sh b/scripts/lttng-tools/gerrit-depends-on.sh index e568578..5b55c82 100755 --- a/scripts/lttng-tools/gerrit-depends-on.sh +++ b/scripts/lttng-tools/gerrit-depends-on.sh @@ -59,6 +59,9 @@ git rev-list --format=%B --max-count=1 HEAD | while read -r line; do fi if [ "$project" = "lttng-modules" ]; then + if [ "$(id -u)" != "0" ]; then + continue + fi if [ -d "$WORKSPACE/src/lttng-modules" ]; then # Remove the regular modules sources to replace them with those # from the gerrit change