set_version: safely iterate over argv

Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
This commit is contained in:
Thilo Fromm 2021-10-06 11:44:15 +02:00 committed by GitHub
parent eaff2d47eb
commit 17924f9d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ fi
# --binhost needs to be evaluated first since it impacts other variables set below # --binhost needs to be evaluated first since it impacts other variables set below
custom_binhost="false" custom_binhost="false"
for arg in ${@} ; do for arg in "${@}" ; do
if $custom_binhost; then if $custom_binhost; then
echo "Using custom binhost '${arg}'" echo "Using custom binhost '${arg}'"
DEFAULT_BASE_URL="${arg}" DEFAULT_BASE_URL="${arg}"