mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 21:53:50 +01:00
Fix Terminal wget bug. Issue #593
This commit is contained in:
parent
f6af9e94ab
commit
3d1684f825
@ -279,5 +279,7 @@ export let CONSTANTS: IMap<any> = {
|
||||
* Gang changes:
|
||||
** Bug Fix: Gangs can no longer clash with themselve
|
||||
** Bug Fix: Winning against another gang should properly reduce their power
|
||||
|
||||
* Bug Fix: Terminal 'wget' command now works properly
|
||||
`
|
||||
}
|
||||
|
@ -5156,7 +5156,15 @@ function NetscriptFunctions(workerScript) {
|
||||
|
||||
return Player.sleeves[sleeveNumber].tryBuyAugmentation(Player, aug);
|
||||
}
|
||||
} // End sleeve
|
||||
}, // End sleeve
|
||||
heart: {
|
||||
// Easter egg function
|
||||
break : function() {
|
||||
if (workerScript.checkingRam) { return 0; }
|
||||
|
||||
return Player.karma;
|
||||
}
|
||||
}
|
||||
} // End return
|
||||
} // End NetscriptFunction()
|
||||
|
||||
|
@ -1474,7 +1474,7 @@ let Terminal = {
|
||||
}
|
||||
|
||||
let url = commandArray[1];
|
||||
let target = comanndArray[2];
|
||||
let target = commandArray[2];
|
||||
if (!isScriptFilename(target) && !target.endsWith(".txt")) {
|
||||
return post(`wget failed: Invalid target file. Target file must be script or text file`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user