diff --git a/pkg/process/errors.go b/pkg/process/errors.go index 0b5c1334..8389abb8 100644 --- a/pkg/process/errors.go +++ b/pkg/process/errors.go @@ -23,7 +23,10 @@ const ( // windowsPowershellCommandNotFoundFragment is a fragment of the error output // returned on Windows systems running Powershell when a command cannot be // found. - windowsPowershellCommandNotFoundFragment = "is not recognized as the name of a cmdlet, function, script file, or operable program." + // Different Windows versions use slightly error messages. + // i.e. "is not recognized as the name of a cmdlet, function, script file, or operable program." + // "is not recognized as a name of a cmdlet, function, script file, or executable program." + windowsPowershellCommandNotFoundFragment = "cmdlet, function, script file, or" ) // OutputIsPOSIXCommandNotFound returns whether or not a process' error output