Release Candidate 2

This commit is contained in:
Sharon Azriel 2023-12-06 15:38:04 +02:00
parent e24027ea57
commit 154a8c398b
2 changed files with 8 additions and 3 deletions

View File

@ -629,7 +629,12 @@ EOS
# the refspec ensures that the default upstream branch gets updated
(
UPSTREAM_REPOSITORY_URL="$(git config remote.origin.url)"
UPSTREAM_REPOSITORY_URL_PARSED=( $(url_get "${UPSTREAM_REPOSITORY_URL}" user pass host path) )
eval UPSTREAM_REPOSITORY_URL_PARSED=( $(url_get "${UPSTREAM_REPOSITORY_URL}" user pass host path) )
if [[ ${#UPSTREAM_REPOSITORY_URL_PARSED[@]} -ne 4 ]]; then
echo "Failed to parse repository URL=${UPSTREAM_REPOSITORY_URL} \!" >&2
exit
fi
# HOMEBREW_GITHUB_API_TOKEN is optionally defined in the user environment.
# can be supersede by local repository URL

View File

@ -44,8 +44,8 @@ url_get() {
fi
while [[ ${#} -gt 0 ]]; do
echo -n "$(eval echo -n "\${_${1}}")"
[[ ${#} -gt 1 ]] && echo -n ${IFS}
echo -n \""$(eval echo -n "\${_${1}}")"\"
[[ ${#} -gt 1 ]] && echo -n "${IFS:- }"
shift
done
}