Skip to content

Commit 2f4608c

Browse files
committed
Update build.php
1 parent 2f0f9be commit 2f4608c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build/build.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@ function clear_directory($dir) {
2424
}
2525

2626
$start = microtime(1);
27-
echo 'Building!';
27+
echo 'Building!'."\n";
2828

2929
// Check JSON formatting
3030
foreach(glob(__DIR__.'/../data/codes/*') as $file) {
3131
$code = json_decode(file_get_contents($file), 1);
3232
if(!json_validate(file_get_contents($file))) {
33-
die("The file $file is not valid JSON. Please correct the format and try again.");
33+
die("The file $file is not valid JSON. Please correct the format and try again.\n");
3434
}
3535
}
3636

3737
$file = __DIR__.'/../data/contributors.json';
3838
if(!json_validate(file_get_contents($file))) {
39-
die("The file $file is not valid JSON. Please correct the format and try again.");
39+
die("The file $file is not valid JSON. Please correct the format and try again.\n");
4040
}
4141

4242
$file = __DIR__.'/../data/providers.json';
4343
if(!json_validate(file_get_contents($file))) {
44-
die("The file $file is not valid JSON. Please correct the format and try again.");
44+
die("The file $file is not valid JSON. Please correct the format and try again.\n");
4545
}
4646

4747
clear_directory($docs_dir);
48-
echo 'Cleared existing /docs directory.';
48+
echo 'Cleared existing /docs directory.'."\n";
4949

5050
mkdir($docs_dir.'/assets', 0755, true);
5151

@@ -354,4 +354,4 @@ function clear_directory($dir) {
354354

355355
$end = microtime(1);
356356

357-
echo 'Built smtp.codes in '.round(($end - $start), 3).' seconds. <a href="https://smtp.codes/">View the site.</a>';
357+
echo 'Built smtp.codes in '.round(($end - $start), 3).' seconds. View the site: https://smtp.codes"\n";';

0 commit comments

Comments
 (0)