Skip to content

Commit

Permalink
languages: fix crash on PowerShell fingerprint scripts
Browse files Browse the repository at this point in the history
Fixes #527.
  • Loading branch information
jkloetzke committed Aug 21, 2023
1 parent 52c9fde commit 33601b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pym/bob/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def mangleFingerprints(scriptFragments, env):
# Add snippets as they match and a default settings preamble
ret = [script]
ret.extend(['$ErrorActionPreference="Stop"', 'Set-PSDebug -Strict'])
for n,v in sorted(env.items()):
for k,v in sorted(env.items()):
ret.append('$Env:{}="{}"'.format(k, escapePwsh(v)))
ret.append(PwshLanguage.HELPERS)

Expand Down

0 comments on commit 33601b8

Please sign in to comment.