From b58aa196a70ed24ee332827606ea08a7da4d9b82 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 28 May 2019 18:28:43 +0300 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=95=9B=20=20Added=20images=20&=20fixed?= =?UTF-8?q?=20lots=20of=20bugs=20&=20fixed=20the=20deploy=20flag=20bug=20?= =?UTF-8?q?=F0=9F=87=A8=F0=9F=87=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.ts b/deploy.ts index 80e156c..3cc5441 100644 --- a/deploy.ts +++ b/deploy.ts @@ -6,7 +6,7 @@ const args = process.argv.splice(2) const randomEmoji = () => random({ count: 1 })[0].character const mFlag = ((args.indexOf("--message") + 1) || (args.indexOf("-m") + 1)) - 1 -const message = `${randomEmoji()} ${(mFlag) ? args[mFlag + 1] : "automated update"} ${randomEmoji()}` +const message = `${randomEmoji()} ${(mFlag >= 0) ? args[mFlag + 1] : "automated update"} ${randomEmoji()}` console.log("Deploying...");