Skip to content

Commit 9669917

Browse files
committed
Fully qualify shell path
1 parent 9ccc208 commit 9669917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws-runtime/aws-config/native/src/aws/sdk/kotlin/runtime/auth/credentials/executeCommandNative.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ internal actual suspend fun executeCommand(
4848
}
4949

5050
val shell = when (platformProvider.osInfo().family) {
51-
OsFamily.Windows -> "cmd.exe"
52-
else -> "sh"
51+
OsFamily.Windows -> "C:\\\\Windows\\\\System32\\\\cmd.exe"
52+
else -> "/bin/sh"
5353
}
5454

5555
val shellArg = when (platformProvider.osInfo().family) {

0 commit comments

Comments
 (0)