Skip to content

Commit 1daab4e

Browse files
committed
dev-bl/config-ip: Clean up googlea messages in nc.js
1 parent 57ce99c commit 1daab4e

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

build/nc.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ shell.echo(`
2323
2424
1. Setting dataset to ${dataset}...`);
2525

26+
27+
// dataset
2628
if (dataset === undefined || dataset === '') {
2729
shell.echo(`
2830
**** ERROR: NO DATASET DEFINED ****
@@ -38,14 +40,21 @@ if (dataset === undefined || dataset === '') {
3840
shell.exit();
3941
}
4042

43+
44+
// google analytics
4145
if (googlea === undefined || googlea === '') {
42-
shell.echo(` 2. Google Analytics will not be used. Use the flag --googlea=XXXX to load google analyics for ID XXXX.`
43-
);
46+
shell.echo(`
47+
2. Google Analytics will not be used.
48+
Use the flag --googlea=XXXX to load google analyics for ID XXXX.
49+
`);
4450
googlea=0;
51+
} else {
52+
shell.echo(`
53+
2. Using Google Analyics with:${googlea}.
54+
If you want to disable google analytics, leave this flag off or set to 0.
55+
`);
4556
}
46-
else{
4757

48-
shell.echo(` 2. Using Google Analyics with:` + googlea + ". If you want to disable google analytics, leave this flag off or set to 0.");
4958
}
5059

5160
let script = `

0 commit comments

Comments
 (0)