Skip to content

Commit

Permalink
Fix shell quoting on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed May 22, 2024
1 parent 55dc4b4 commit 77baac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ externalCommand: aString
^ self externalCommand: aString].
osProcess waitForCommand:
(osProcess isWindows
ifTrue: ['cmd.exe /c "{1} & pause"' format: {aString copyReplaceAll: '"' with: '\"'}]
ifTrue: ['cmd.exe /c "{1} & pause"' format: {aString}]
ifFalse: [self terminalCommand: aString]).
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
git porcelain - external
externalGitDo: aCommandLineSuffix
self externalCommand: ('git -C {1} {2}' format: {repository workingDir pathName copyReplaceAll: ' ' with: '\ '. aCommandLineSuffix}).
self externalCommand: ('git -C "{1}" {2}' format: {repository workingDir pathName. aCommandLineSuffix}).
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"createBranchNamed:at:" : "jr 3/4/2020 00:47",
"detectTerminalCommand" : "mad 4/3/2024 15:10",
"expandRemoteRef:" : "pre 6/15/2018 16:04",
"externalCommand:" : "mad 5/18/2024 11:18",
"externalGitDo:" : "mad 12/20/2023 19:11",
"externalCommand:" : "mad 5/22/2024 13:55",
"externalGitDo:" : "mad 5/22/2024 13:29",
"externalPush:toRemote:force:" : "mad 5/18/2024 12:26",
"fetchAllExternalFrom:" : "mad 5/18/2024 11:48",
"fetchFrom:" : "mad 4/22/2024 17:34",
Expand Down

0 comments on commit 77baac3

Please sign in to comment.