From 06f1a8ccd83df6069738e65c0a000591e0a0f122 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 27 May 2019 21:16:20 +0300 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=91=A1=20=203141519265368979323=20?= =?UTF-8?q?=F0=9F=98=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.ts b/deploy.ts index 71723d7..ed4edeb 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) ? args[mFlag + 1] : "automated update"} ${randomEmoji()}` console.log("Deploying..."); @@ -29,7 +29,7 @@ const run = (command: string): Promise => { if (!args.includes("--skipBuild") && !args.includes("-sb")) await run("npm run build") await run("git add .") - await run(`git commit -m " ${message} "`) + await run(`git commit -m " ${message} "`) await run("git push origin master") await new Promise((res, rej) => { console.log("🏃 Updating github pages")