From 41ed8257a35763aa04fc94a3141acb5544eeafe4 Mon Sep 17 00:00:00 2001 From: Jakub Jankiewicz Date: Sat, 16 Nov 2024 14:07:09 +0100 Subject: [PATCH] ignore empty command in Pipe extension #984 --- CHANGELOG.md | 1 + js/pipe.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ba1606f..5bd81653 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Bugfix * fix `terminal::login()` when user already authenticated [#980](https://github.com/jcubic/jquery.terminal/issues/980) * improve mobile support +* ignore empty command in Pipe extension [#984](https://github.com/jcubic/jquery.terminal/issues/984) ## 2.44.1 ### Bugfix diff --git a/js/pipe.js b/js/pipe.js index e6f42933..5c0ceb5b 100644 --- a/js/pipe.js +++ b/js/pipe.js @@ -395,7 +395,7 @@ }); } else if (is_function(term_settings.onCommandNotFound)) { term_settings.onCommandNotFound.call(term, command, term); - } else { + } else if (cmd.name) { error(sprintf(strings(term).commandNotFound, cmd.name)); } } else {