Skip to content

Commit

Permalink
fix Windows cmd args issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Nov 15, 2024
1 parent 2f01ead commit 09de871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ export class GumbyController {
telemetry.codeTransform_submitSelection.emit({
codeTransformSessionId: CodeTransformTelemetryState.instance.getSessionId(),
userChoice: objective,
result: 'Succeeded',
})
}
if (objective === 'language upgrade') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ export async function getValidSQLConversionCandidateProjects() {
const searchStrings = ['oracle.jdbc.OracleDriver', 'jdbc:oracle:thin:@//', 'jdbc:oracle:oci:@//']
for (const str of searchStrings) {
// case-insensitive, recursive search
const args = isWindows ? ['/i', '/s', str] : ['-i', '-r', str]
const args = isWindows ? ['/i', '/s', str, '*.*'] : ['-i', '-r', str]
const spawnResult = await new ChildProcess(command, args).run({
spawnOptions: { cwd: project.path, shell: false },
})
Expand Down

0 comments on commit 09de871

Please sign in to comment.