Update scripts/update.js
This commit is contained in:
		@@ -144,7 +144,7 @@ export async function main(ns) {
 | 
				
			|||||||
		throw err;
 | 
							throw err;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if(!args['skip'] || args['skip'] != 32479805) {
 | 
						if(!args['skip'] || args['skip'] != 278024) {
 | 
				
			||||||
		// Banner
 | 
							// Banner
 | 
				
			||||||
		ns.tprint('===================================================');
 | 
							ns.tprint('===================================================');
 | 
				
			||||||
		ns.tprint(`Updating: ${args['device']}`);
 | 
							ns.tprint(`Updating: ${args['device']}`);
 | 
				
			||||||
@@ -158,8 +158,10 @@ export async function main(ns) {
 | 
				
			|||||||
        await downloadPrint(ns, `${dest}${updateFile}`);
 | 
					        await downloadPrint(ns, `${dest}${updateFile}`);
 | 
				
			||||||
        ns.tprint('');
 | 
					        ns.tprint('');
 | 
				
			||||||
        await slowPrint(ns, 'Restarting...');
 | 
					        await slowPrint(ns, 'Restarting...');
 | 
				
			||||||
		ns.tprint('');
 | 
					        const pid = ns.exec(`${dest}${updateFile}`, args['device'], 1, 278024);
 | 
				
			||||||
        return ns.exec(`${dest}${updateFile}`, args['device'], 1, 32479805);
 | 
							if(pid == 0) ns.tprint('Failed');
 | 
				
			||||||
 | 
							else ns.tprint('Done!');
 | 
				
			||||||
 | 
							return ns.tprint('');
 | 
				
			||||||
    } else { // Update everything else
 | 
					    } else { // Update everything else
 | 
				
			||||||
        await slowPrint(ns, 'Downloading scripts:');
 | 
					        await slowPrint(ns, 'Downloading scripts:');
 | 
				
			||||||
        for(let file of fileList) {
 | 
					        for(let file of fileList) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user