From 544d11dba2db82f020dad19182dd490ffffa149f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Tue, 21 Apr 2026 18:03:29 +0200 Subject: [PATCH] tests: Fix shellcheck issues in gha-adjust-to-use-prebuilt-components.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix shellcheck warnings and notes identified by running shellcheck --severity=style. Signed-off-by: Fabiano FidĂȘncio --- tests/gha-adjust-to-use-prebuilt-components.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/gha-adjust-to-use-prebuilt-components.sh b/tests/gha-adjust-to-use-prebuilt-components.sh index b16c5e3b4b..afbb5b34e4 100755 --- a/tests/gha-adjust-to-use-prebuilt-components.sh +++ b/tests/gha-adjust-to-use-prebuilt-components.sh @@ -19,18 +19,18 @@ function main() { artifacts_dir="${1:-}" asset="${2:-}" - if [ -z "${artifacts_dir}" ]; then + if [[ -z "${artifacts_dir}" ]]; then echo "The artefacts directory must be passed as the first argument to this script." exit 1 fi - if [ -z "${asset}" ]; then + if [[ -z "${asset}" ]]; then echo "The asset must be passed as the second argument to this script." exit 1 fi - mv ${artifacts_dir} ${build_dir} - sed -i "s/\(^${asset}-tarball:\).*/\1/g" ${base_dir}/Makefile + mv "${artifacts_dir}" "${build_dir}" + sed -i "s/\(^${asset}-tarball:\).*/\1/g" "${base_dir}/Makefile" } main "$@"