Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 1ccf01b

Browse files
author
mattpass
committed
No need to double output prompt if no arg for cd
1 parent 9b881cf commit 1ccf01b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/terminal-xhr.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ function returnHTMLPromptCommand($cmd) {
7676
// If command contains cd but no dir
7777
if (preg_match('/^[[:blank:]]*cd[[:blank:]]*$/', $_REQUEST['command'])) {
7878
$_SESSION['cwd'] = $cwd;
79-
$output .= returnHTMLPromptCommand("cd");
8079
// Else cd to a dir
8180
} elseif (preg_match('/^[[:blank:]]*cd[[:blank:]]+([^;]+)$/', $_REQUEST['command'], $regs)) {
8281
// The current command is 'cd', which we have to handle as an internal shell command

0 commit comments

Comments
 (0)