Skip to content

Commit

Permalink
Use isUnix() for testing whether to use bat or sh
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Sep 10, 2024
1 parent ecbb95e commit 98ed8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ class Build {
*/
def batOrSh(command)
{
if ( buildConfig.TARGET_OS == 'windows' && buildConfig.DOCKER_IMAGE ) {
if ( context.isUnix() ) {
context.bat(command)
} else {
context.sh(command)
Expand Down

0 comments on commit 98ed8f0

Please sign in to comment.