Skip to content

Commit 8b60c94

Browse files
committed
Fix vhost.conf path and change validationFailedExit calls to exitScript
1 parent 04b4d22 commit 8b60c94

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

initializeBranch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function createVhostFile {
176176
if [ ! -f "$vhostPath" ]; then
177177
echoValidationGroupStart "Create .phpbenchmarks/vhost.conf"
178178

179-
cp "$BENCHMARK_KIT_PATHvalidation/mainRepository/.phpbenchmarks/vhost.conf" "$INSTALLATION_PATH/.phpbenchmarks/"
179+
cp "$BENCHMARK_KIT_PATH/validation/mainRepository/.phpbenchmarks/vhost.conf" "$INSTALLATION_PATH/.phpbenchmarks/"
180180
[ $? != "0" ] && exitScript "Error while writing $vhostPath."
181181
echoValidatedTest "File created."
182182
echoValidationWarning ".phpbenchmarks/vhost.conf has been created with default nginx virtual host configuration. Edit it if needed."

validation/configurationValidation.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,9 @@ function assertInitBenchmark {
100100
assertConfigurationFileExist "initBenchmark.sh"
101101

102102
source $CONFIGURATION_PATH/initBenchmark.sh
103-
[ "$?" != "0" ] && validationFailedExit "File init_benchmark.sh could not be included."
103+
[ "$?" != "0" ] && exitScript "File init_benchmark.sh could not be included."
104104

105105
type initBenchmark &>/dev/null
106-
[ "$?" != "0" ] \
107-
&& cat /tmp/phpbenchmarks.docker.build \
108-
&& validationFailedExit "Function init_benchmark.sh::initBenchmark() does not exist. See README.md for more informations."
106+
[ "$?" != "0" ] && exitScript "Function init_benchmark.sh::initBenchmark() does not exist. See README.md for more informations."
109107
echoValidatedTest "[.phpbenchmarks/initBenchmark.sh] Function initBenchmark() exist."
110108
}

0 commit comments

Comments
 (0)