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 "$@"