mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-02-18 10:53:43 +01:00
fix ls not working on dir
This commit is contained in:
@ -39,7 +39,7 @@ export function ls(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the second argument is not a pipe, then it must be for listing a directory
|
// If the second argument is not a pipe, then it must be for listing a directory
|
||||||
if (numArgs >= 2 && args[0] !== "|") {
|
if (numArgs >= 1 && args[0] !== "|") {
|
||||||
const newPath = evaluateDirectoryPath(args[0] + "", terminal.cwd());
|
const newPath = evaluateDirectoryPath(args[0] + "", terminal.cwd());
|
||||||
prefix = newPath ? newPath : "";
|
prefix = newPath ? newPath : "";
|
||||||
if (prefix != null) {
|
if (prefix != null) {
|
||||||
|
Reference in New Issue
Block a user