mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 17:53:55 +01:00
woops, sed overkill
This commit is contained in:
parent
6bdf946790
commit
40b29ea3c0
@ -1054,7 +1054,7 @@ let Terminal = {
|
|||||||
if (fn === "*" || fn === "*.script") {
|
if (fn === "*" || fn === "*.script") {
|
||||||
for (var i = 0; i < s.scripts.length; ++i) {
|
for (var i = 0; i < s.scripts.length; ++i) {
|
||||||
var file = new Blob([s.scripts[i].code], {type:"text/plain"});
|
var file = new Blob([s.scripts[i].code], {type:"text/plain"});
|
||||||
zip.file(s.scripts[i].filename + "", file);
|
zip.file(s.scripts[i].filename + ".js", file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fn === "*" || fn === "*.txt") {
|
if (fn === "*" || fn === "*.txt") {
|
||||||
@ -1327,7 +1327,7 @@ let Terminal = {
|
|||||||
|
|
||||||
//Check if its a script or just a program/executable
|
//Check if its a script or just a program/executable
|
||||||
//if (isScriptFilename(executableName)) {
|
//if (isScriptFilename(executableName)) {
|
||||||
if (executableName.includes(".script") || executableName.includes("") || executableName.includes(".ns")) {
|
if (executableName.includes(".script") || executableName.includes(".js") || executableName.includes(".ns")) {
|
||||||
Terminal.runScript(executableName);
|
Terminal.runScript(executableName);
|
||||||
} else {
|
} else {
|
||||||
Terminal.runProgram(executableName);
|
Terminal.runProgram(executableName);
|
||||||
|
Loading…
Reference in New Issue
Block a user