From 869caaa8d8565e7fd4c111c6514f45fea9c7a889 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Sat, 15 Mar 2025 12:45:31 -0400 Subject: [PATCH] script/run-make: use SUDO variable for running llvm install script Match the behavior of install-deps.sh and use a SUDO env var that may or may not actually invoke sudo. This is needed when building a container image to build ceph as these scripts all run as root already and sudo is not needed and thus not installed. Signed-off-by: John Mulligan --- src/script/run-make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script/run-make.sh b/src/script/run-make.sh index 616a50cdefb9..f7868a425667 100755 --- a/src/script/run-make.sh +++ b/src/script/run-make.sh @@ -58,7 +58,8 @@ function prepare() { ci_debug "Getting clang-19" wget https://download.ceph.com/qa/llvm.sh chmod +x llvm.sh - $DRY_RUN sudo ./llvm.sh 19 + wrap_sudo + $DRY_RUN $SUDO ./llvm.sh 19 rm llvm.sh fi fi -- 2.47.3