diff --git a/hack/release.sh b/hack/release.sh index 08572deeb92..ab3f049303c 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -65,11 +65,11 @@ function build_release() { # branch since the detail of building may change over time. local YAML_LIST="$(mktemp)" export TAG - $(dirname $0)/generate-yamls.sh "${REPO_ROOT_DIR}" "${YAML_LIST}" + "$(dirname "$0")/generate-yamls.sh" "${REPO_ROOT_DIR}" "${YAML_LIST}" ARTIFACTS_TO_PUBLISH=$(cat "${YAML_LIST}" | tr '\n' ' ') if (( ! PUBLISH_RELEASE )); then # Copy the generated YAML files to the repo root dir if not publishing. - cp ${ARTIFACTS_TO_PUBLISH} ${REPO_ROOT_DIR} + cp ${ARTIFACTS_TO_PUBLISH} "${REPO_ROOT_DIR}" fi }