[release]

This commit is contained in:
crschnick
2024-10-17 15:32:57 +00:00
parent 01bac9d5fa
commit aae09c255f
5 changed files with 59 additions and 3 deletions

View File

@@ -48,7 +48,11 @@ public class ShellDialects {
return false;
}
return sc.getShellDialect().equals(POWERSHELL) || sc.getShellDialect().equals(POWERSHELL_CORE);
return isPowershell(sc.getShellDialect());
}
public static boolean isPowershell(ShellDialect d) {
return d == POWERSHELL || d == POWERSHELL_CORE;
}
public static Optional<ShellDialect> byNameIfPresent(String name) {