Skip to content

Commit cc03cb0

Browse files
committed
adjust test helper function
1 parent cd61f43 commit cc03cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/test/shared/extensions/ssh.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('SSH Agent', function () {
3838
})
3939

4040
function echoEnvVarsCmd(varNames: string[]) {
41-
const toShell = (s: string) => `$${s}`
41+
const toShell = (s: string) => (isWin() ? `%${s}%` : `$${s}`)
4242
return `echo "${varNames.map(toShell).join(' ')}"`
4343
}
4444

0 commit comments

Comments
 (0)