From 72cad6458d02d112b3a4d7e0d9104c5ce2f07c2c Mon Sep 17 00:00:00 2001 From: Shuchita Khare Date: Thu, 22 Feb 2024 10:31:25 +0000 Subject: [PATCH] fix calling of .sh script --- tools/ci/helper_functions.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ci/helper_functions.sh b/tools/ci/helper_functions.sh index c07c11b..cb7a383 100644 --- a/tools/ci/helper_functions.sh +++ b/tools/ci/helper_functions.sh @@ -5,11 +5,11 @@ # A small utility to run a command and only print logs if the command fails. # On success, all logs are hidden. -function log_errors { +log_errors { if log=$("$@" 2>&1); then echo "'$@' completed successfully!" else echo "$log" return 1 - fi -} \ No newline at end of file + fi +}