Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 92c17b4

Browse files
myan9k8s-ci-robot
authored andcommitted
fix(plugins/plugin-bash-like): export command stores newline in session storage
1 parent 0050a62 commit 92c17b4

File tree

1 file changed

+1
-1
lines changed
  • plugins/plugin-bash-like/src/lib/cmds

1 file changed

+1
-1
lines changed

plugins/plugin-bash-like/src/lib/cmds/export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const exportCommand = async (args: Arguments) => {
2929
const arr = toBeParsed.split('=')
3030
const key = arr[0]
3131

32-
const myArgs = Object.assign({}, args, { command: `${command}; echo $${key}` })
32+
const myArgs = Object.assign({}, args, { command: `${command}; echo -n $${key}` })
3333
const value = await doExecWithStdoutViaPty(myArgs)
3434
curDic[key] = value
3535

0 commit comments

Comments
 (0)