We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84a185c commit 0d7ccdaCopy full SHA for 0d7ccda
1 file changed
packages/database/scripts/deploy.ts
@@ -5,7 +5,7 @@ dotenv.config();
5
6
const main = () => {
7
try {
8
- exec("git status -s -b", (err, stdout, stderr) => {
+ exec("git status -s -b -uno", (err, stdout, stderr) => {
9
if (err) {
10
console.error("Is git installed?");
11
process.exit(1);
@@ -15,6 +15,12 @@ const main = () => {
15
console.log("Not on main branch, not deploying database");
16
process.exit(0);
17
}
18
+ if (lines.length > 1) {
19
+ console.log(
20
+ "You seem to have uncommitted changes, not deploying database",
21
+ );
22
+ process.exit(0);
23
+ }
24
const { SUPABASE_PROJECT_ID, SUPABASE_DB_PASSWORD } = process.env;
25
if (!SUPABASE_PROJECT_ID) {
26
console.log("Please define SUPABASE_PROJECT_ID");
0 commit comments