setup.sh: add quotes where semantically valid

This commit is contained in:
happysalada
2021-07-06 09:27:18 +09:00
committed by Raphael Megzari
parent 5f01543070
commit faca9440fb
+2 -2
View File
@@ -1218,7 +1218,7 @@ installCheckPhase() {
echo "no Makefile or custom installCheckPhase, doing nothing"
#TODO(@oxij): should flagsArray influence make -n?
elif [[ -z "${installCheckTarget:-}" ]] \
&& ! make -n ${makefile:+-f $makefile} ${installCheckTarget:-installcheck} >/dev/null 2>&1; then
&& ! make -n ${makefile:+-f $makefile} "${installCheckTarget:-installcheck}" >/dev/null 2>&1; then
echo "no installcheck target in ${makefile:-Makefile}, doing nothing"
else
IFS=" " read -r -a makeFlagsTemp <<< "$makeFlags"
@@ -1253,7 +1253,7 @@ distPhase() {
local flagsArray=(
"${distFlagsTemp[@]}"
${distFlagsArray+"${distFlagsArray[@]}"}
${distTarget:-dist}
"${distTarget:-dist}"
)
echo 'dist flags: %q' "${flagsArray[@]}"