From 420cc6e767b39056310b81966fc7664253377f9b Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 23 Feb 2016 00:54:07 -0600 Subject: [PATCH] Fix legacy auto-update logic from mistake in review --- nwapp/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nwapp/index.js b/nwapp/index.js index 65c859b..1ccf24f 100644 --- a/nwapp/index.js +++ b/nwapp/index.js @@ -65,7 +65,7 @@ var checkFileExistSync = function(target) { var legacyCurrentInstallPath; var legacyNewUpdaterExecutablePath; - if (argv.length === 2 && checkFileExistSync(argv._[0]) && checkFileExistSync(argv._[1])) { + if (argv._.length === 2 && checkFileExistSync(argv._[0]) && checkFileExistSync(argv._[1])) { // This only happens if we have a pre v3.0.0 desktop app attempting to update to v3+ // FIXME: remove after August 2016 legacyCurrentInstallPath = argv._[0];