We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d6b783 + cd65302 commit 3eb8b7fCopy full SHA for 3eb8b7f
1 file changed
packages/database/scripts/deploy.ts
@@ -10,9 +10,12 @@ const main = () => {
10
console.error("Is git installed?");
11
process.exit(1);
12
}
13
- console.log(stdout);
14
- const lines = stdout.split("\n");
+ let lines = stdout.split("\n");
+ lines = lines.filter((l) => l.length > 0);
15
+ console.log(lines);
16
if (lines[0] != "## main...origin/main") {
17
+ console.log(stdout);
18
+ console.error(stderr);
19
console.log("Not on main branch, not deploying database");
20
process.exit(0);
21
0 commit comments