mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
Fix Terminal wget bug. Issue #593
This commit is contained in:
parent
8d33c5b571
commit
98a04e4932
@ -279,5 +279,7 @@ export let CONSTANTS: IMap<any> = {
|
|||||||
* Gang changes:
|
* Gang changes:
|
||||||
** Bug Fix: Gangs can no longer clash with themselve
|
** Bug Fix: Gangs can no longer clash with themselve
|
||||||
** Bug Fix: Winning against another gang should properly reduce their power
|
** 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);
|
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 return
|
||||||
} // End NetscriptFunction()
|
} // End NetscriptFunction()
|
||||||
|
|
||||||
|
@ -1474,7 +1474,7 @@ let Terminal = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let url = commandArray[1];
|
let url = commandArray[1];
|
||||||
let target = comanndArray[2];
|
let target = commandArray[2];
|
||||||
if (!isScriptFilename(target) && !target.endsWith(".txt")) {
|
if (!isScriptFilename(target) && !target.endsWith(".txt")) {
|
||||||
return post(`wget failed: Invalid target file. Target file must be script or text file`);
|
return post(`wget failed: Invalid target file. Target file must be script or text file`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user