From 284c21534ed2228ecbc15be4bd4c353ed3aa4e89 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Fri, 23 Apr 2021 00:39:09 +0200 Subject: [PATCH] Fix help resolution type detection --- package.json | 2 +- src/main/js/Commands.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 801fa29..794650f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fwdekker.com", - "version": "0.40.3", + "version": "0.40.4", "description": "The source code of [my personal website](https://fwdekker.com/).", "author": "Felix W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/js/Commands.ts b/src/main/js/Commands.ts index 328b6eb..d541051 100644 --- a/src/main/js/Commands.ts +++ b/src/main/js/Commands.ts @@ -607,7 +607,7 @@ return new Command( streams.out.write("\\n\\n"); const command = josh.interpreter.resolve(commandName); - if (command === undefined) { + if (command === undefined || command instanceof Directory) { streams.err.writeLine(\`help: Unknown command '\${commandName}'.\`); return ExitCode.USAGE; }