More powershell fixes

This commit is contained in:
crschnick 2024-03-13 07:23:13 +00:00
parent 32515720fc
commit 0149137abe

View file

@ -124,7 +124,7 @@ public class ScriptHelper {
var type = parent.getShellDialect();
// Fix for powershell as there are permission issues when executing a powershell askpass script
if (parent.getShellDialect().equals(ShellDialects.POWERSHELL)) {
if (ShellDialects.isPowershell(parent)) {
type = parent.getOsType().equals(OsType.WINDOWS) ? ShellDialects.CMD : ShellDialects.SH;
}