mirror of
https://github.com/louislam/dockge.git
synced 2025-03-15 07:38:19 +01:00
refactor: unneeded extra check
This commit is contained in:
parent
52ea324129
commit
673fb8f8dd
@ -219,7 +219,7 @@ export class MainTerminal extends InteractiveTerminal {
|
||||
// Check if the command is allowed
|
||||
const cmdParts = input.split(" ");
|
||||
const executable = cmdParts[0].trim();
|
||||
const knownOperators = ["&&", "||", "&", ";"];
|
||||
const knownOperators = ["||", "&", ";"];
|
||||
log.debug("console", "Executable: " + executable);
|
||||
log.debug("console", "Executable length: " + executable.length);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user