From 7e38f6e72c26f88010774c351dec21400895f844 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Wed, 9 Mar 2022 19:38:05 +0000 Subject: [PATCH] Update scripts/update.js --- scripts/update.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/update.js b/scripts/update.js index b4e6330..1d9689b 100644 --- a/scripts/update.js +++ b/scripts/update.js @@ -144,7 +144,7 @@ export async function main(ns) { throw err; } - if(!args['skip'] || args['skip'] != 32479805) { + if(!args['skip'] || args['skip'] != 278024) { // Banner ns.tprint('==================================================='); ns.tprint(`Updating: ${args['device']}`); @@ -158,8 +158,10 @@ export async function main(ns) { await downloadPrint(ns, `${dest}${updateFile}`); ns.tprint(''); await slowPrint(ns, 'Restarting...'); - ns.tprint(''); - return ns.exec(`${dest}${updateFile}`, args['device'], 1, 32479805); + const pid = ns.exec(`${dest}${updateFile}`, args['device'], 1, 278024); + if(pid == 0) ns.tprint('Failed'); + else ns.tprint('Done!'); + return ns.tprint(''); } else { // Update everything else await slowPrint(ns, 'Downloading scripts:'); for(let file of fileList) {