Skip to content

Commit 4e7b654

Browse files
authored
fix: Fix command argument formatting in terminal initlinux (#11484)
1 parent e8059d3 commit 4e7b654

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/views/host/file-management/terminal

1 file changed

+1
-1
lines changed

frontend/src/views/host/file-management/terminal/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const initTerm = async (cwd: string) => {
5555
await nextTick();
5656
terminalRef.value!.acceptParams({
5757
endpoint: '/api/v2/hosts/terminal',
58-
args: `command=${encodeURIComponent(`clear && cd ${cwd}`)}`,
58+
args: `command=${encodeURIComponent(`clear && cd "${cwd}"`)}`,
5959
error: '',
6060
initCmd: '',
6161
});

0 commit comments

Comments
 (0)