Skip to content

Commit

Permalink
runCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
darinpope committed May 3, 2022
1 parent a77954b commit dd47530
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vars/runCommand.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def call(Map config=[returnStatus:false,returnStdout:false]) {
if(isUnix()) {
sh(script:config.script, returnStatus:config.returnStatus, returnStdout:config.returnStdout)
} else {
bat(script:config.script, returnStatus:config.returnStatus, returnStdout:config.returnStdout)
}
}

0 comments on commit dd47530

Please sign in to comment.