Skip to content

Commit

Permalink
input: fix PowerShell fingerprint scripts
Browse files Browse the repository at this point in the history
When the default language is set to PowerShell, any script without the
language suffix should apply to PowerShell. Specifically, the
"fingerprintScript" should be executed as PowerShell script if
"fingerprintScriptPwsh" is not set. This was not working, though.
  • Loading branch information
jkloetzke committed Aug 21, 2023
1 parent 33601b8 commit a24aab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pym/bob/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -3722,7 +3722,7 @@ def __createSchemas(self):
schema.Optional('environment') : VarDefineValidator("provideTools::environment"),
schema.Optional('fingerprintScript', default="") : str,
schema.Optional('fingerprintScriptBash') : str,
schema.Optional('fingerprintScriptPwsh', default="") : str,
schema.Optional('fingerprintScriptPwsh') : str,
schema.Optional('fingerprintIf') : schema.Or(None, str, bool, IfExpression),
schema.Optional('fingerprintVars') : [ varNameUseSchema ],
})
Expand All @@ -3742,7 +3742,7 @@ def __createSchemas(self):
schema.Optional('packageNetAccess') : bool,
schema.Optional('fingerprintScript', default="") : str,
schema.Optional('fingerprintScriptBash') : str,
schema.Optional('fingerprintScriptPwsh', default="") : str,
schema.Optional('fingerprintScriptPwsh') : str,
schema.Optional('fingerprintIf') : schema.Or(None, str, bool, IfExpression),
schema.Optional('fingerprintVars') : [ varNameUseSchema ],
schema.Optional('scriptLanguage') : schema.And(schema.Or("bash", "PowerShell"),
Expand Down

0 comments on commit a24aab7

Please sign in to comment.