From e056e4ea9a8284dc2e26c7687df855fc4dfa1db3 Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Wed, 2 Mar 2016 14:55:49 +0200 Subject: [PATCH] Exit when sync complete --- bin/now | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/now b/bin/now index 5c4f3bb..1daf155 100755 --- a/bin/now +++ b/bin/now @@ -90,6 +90,7 @@ async function sync (token) { const elapsed_u = ms(new Date() - start_u); console.log(`> Sync complete (${bytes(now.syncAmount)}) [${elapsed_u}] `); now.close(); + process.exit(0); }; if (now.syncAmount) {