Skip to content

Commit

Permalink
🐛 Fixes Accidental Parameter String Interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Dec 20, 2023
1 parent cc8aac5 commit 992068e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Set-ItemNixMode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if ($IsLinux) {
# only if the UnixFileMode type is available.
if ([Type]::GetType("System.IO.UnixFileMode")) {
$Attribute = [System.Management.Automation.ValidateScriptAttribute]::new(
[ScriptBlock]::Create("ConvertTo-NixMode -FromOctal $_")
[ScriptBlock]::Create("ConvertTo-NixMode -FromOctal `$_")
)
$RuntimeParameterDictionary = [System.Management.Automation.RuntimeDefinedParameterDictionary]::new()
$RuntimeParameterDictionary.Add(
Expand Down

0 comments on commit 992068e

Please sign in to comment.