Skip to content

Commit ebe6bcb

Browse files
committed
More quoting
1 parent 7c45f6b commit ebe6bcb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tooling/compare-builds-postfunctions.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ function tapsAndJunits() {
2929
fi
3030
RFAT="$(pwd)/run-folder-as-tests"
3131
fi
32-
generateSummUp ${diffFileParam} ${differencesFile} ${totalFile}
33-
printPlain ${diffFileParam} ${differencesFile} ${totalFile}
32+
generateSummUp "${diffFileParam}" "${differencesFile}" "${totalFile}"
33+
printPlain "${diffFileParam}" "${differencesFile}" "${totalFile}"
3434
if [ "${DO_TAPS:-}" == "true" ] ; then
35-
generateTaps ${diffFileParam} ${differencesFile} ${totalFile}
35+
generateTaps "${diffFileParam}" "${differencesFile}" "${totalFile}"
3636
fi
3737
if [ "${DO_JUNIT:-}" == "true" ] ; then
38-
generateJunits ${diffFileParam} ${differencesFile} ${totalFile}
38+
generateJunits "${diffFileParam}" "${differencesFile}" "${totalFile}"
3939
fi
4040
set -x
4141
}
4242

4343
function generateSummUp() {
4444
set +x
45-
if [ ${GLOBAL_RESULT} -eq 0 ] ; then
45+
if [ "${GLOBAL_RESULT}" -eq 0 ] ; then
4646
passed=$(("${passed}"+1))
4747
else
4848
failed=$(("${failed}"+1))
@@ -94,7 +94,7 @@ function totalOnlyInToPlain() {
9494
}
9595

9696
function globalResultToPlain() {
97-
if [ ${GLOBAL_RESULT} -eq 0 ] ; then
97+
if [ "${GLOBAL_RESULT}" -eq 0 ] ; then
9898
echo "-- COMPARABLE --"
9999
else
100100
echo "-- MISMATCH --"
@@ -138,7 +138,7 @@ function totalOnlyInToXml() {
138138
}
139139

140140
function globalResultToXml() {
141-
if [ ${GLOBAL_RESULT} -eq 0 ] ; then
141+
if [ "${GLOBAL_RESULT}" -eq 0 ] ; then
142142
printXmlTest "compare" "comparable-builds" "4" "" "../artifact/$(basename "${diffFileParam}")" >> "${unitFile}"
143143
else
144144
printXmlTest "compare" "comparable-builds" "4" "${diffFileParam}" "../artifact/$(basename "${diffFileParam}")" >> "${unitFile}"
@@ -204,7 +204,7 @@ function totalOnlyInToTap() {
204204
}
205205

206206
function globalResultToTap() {
207-
if [ ${GLOBAL_RESULT} -eq 0 ] ; then
207+
if [ "${GLOBAL_RESULT}" -eq 0 ] ; then
208208
tapTestStart "ok" "4" "comparable-builds" >> "${resultsTapFile}"
209209
else
210210
tapTestStart "not ok" "4" "comparable-builds" >> "${resultsTapFile}"

tooling/compare-builds.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ popd
479479

480480
diffFile="${COMPARE_WAPPER_SCRIPT_DIR}/reproducible/reprotest.diff"
481481
if [ "${DO_TAPS:-}" == "true" ] || [ "${DO_JUNIT:-}" == "true" ] ; then
482-
source ${COMPARE_WAPPER_SCRIPT_DIR}/compare-builds-postfunctions.sh
482+
source "${COMPARE_WAPPER_SCRIPT_DIR}/compare-builds-postfunctions.sh"
483483
tapsAndJunits "${diffFile}" "${diflog}" "${totlog}"
484484
else
485485
ls "${diffFile}"

0 commit comments

Comments
 (0)