parent
49da5b785a
commit
3daa762571
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "fwdekker.com",
|
||||
"version": "0.28.0",
|
||||
"version": "0.28.1",
|
||||
"description": "The source code of [my personal website](https://fwdekker.com/).",
|
||||
"author": "Felix W. Dekker",
|
||||
"repository": {
|
||||
|
|
|
@ -365,7 +365,7 @@ export class Commands {
|
|||
}
|
||||
|
||||
const path = Path.interpret(this.environment.get("cwd"), input.args[0]);
|
||||
if (!this.fileSystem.has(path)) {
|
||||
if (!this.fileSystem.has(path) || !(this.fileSystem.get(path) instanceof Directory)) {
|
||||
streams.err.writeLine(`cd: The directory '${path}' does not exist.`);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue