From d2e5ef51ba87b11f5b4ae607352387a4b94a4399 Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Wed, 30 Jun 2021 22:10:09 +0100 Subject: [PATCH] Debugging --- commandline/commandline.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commandline/commandline.groovy b/commandline/commandline.groovy index df99a75..38f80fa 100644 --- a/commandline/commandline.groovy +++ b/commandline/commandline.groovy @@ -2,8 +2,7 @@ String getCommandOutput(String cmd) { if (isUnix()) { return sh(returnStdout: true, script: '#!/bin/sh -e\n' + cmd).trim() } else { - return bat(returnStdout: true, script: """ - @echo off + return powershell(returnStdout: true, script: """ ${cmd} """ ).trim()