From 832b61e3dd8a2248ae94824395f48455c059a82a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 5 Mar 2018 20:53:52 -0800 Subject: [PATCH] update scripts --- bin/restore-mastodon-data.js | 7 +------ bin/run-mastodon.js | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bin/restore-mastodon-data.js b/bin/restore-mastodon-data.js index 060f5c8..bb79620 100644 --- a/bin/restore-mastodon-data.js +++ b/bin/restore-mastodon-data.js @@ -43,9 +43,4 @@ export async function restoreMastodonData () { await reblogStatus('localhost:3000', accessToken, internalIdsToIds[action.boost]) } } -} - -restoreMastodonData().catch(err => { - console.error(err) - process.exit(1) -}) \ No newline at end of file +} \ No newline at end of file diff --git a/bin/run-mastodon.js b/bin/run-mastodon.js index ef8b283..b23b19b 100644 --- a/bin/run-mastodon.js +++ b/bin/run-mastodon.js @@ -4,6 +4,7 @@ import childProcessPromise from 'child-process-promise' import path from 'path' import fs from 'fs' import { waitForMastodonToStart } from './wait-for-mastodon-to-start' +import mkdirpCB from 'mkdirp' const exec = childProcessPromise.exec const spawn = childProcessPromise.spawn