Skip to content

Commit b4daa8a

Browse files
authored
fix: use sh under BSD systems (#1208)
1 parent 10d9f81 commit b4daa8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/kotlin/ee/carlrobert/codegpt/agent/tools

src/main/kotlin/ee/carlrobert/codegpt/agent/tools/BashTool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ class BashTool(
565565
?: "C:\\Windows"
566566
listOf("$systemRoot\\System32\\cmd.exe", "/c", command)
567567
}
568-
568+
osName.contains("bsd") -> listOf("sh", "-c", command)
569569
else -> listOf("bash", "-c", command)
570570
}
571571
}

0 commit comments

Comments
 (0)