Let the user change the texts again after they made them read-only
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
49c61b6b91
commit
ea0d6a85fd
1 changed files with 2 additions and 0 deletions
|
|
@ -141,6 +141,8 @@ foreach ($copy in Get-ChildItem -LiteralPath $copies -Recurse -File -Force) {
|
|||
Copy-Item -LiteralPath $copy.FullName -Destination $target -Force
|
||||
}
|
||||
Set-ProtectedAcl $target $false ($readOnly -notcontains $copy.Name)
|
||||
# the user may have made the file read-only for themselves, the four texts are theirs to change
|
||||
(Get-Item -LiteralPath $target -Force).IsReadOnly = $false
|
||||
Write-Log "restored $($copy.Name)"
|
||||
} catch {
|
||||
Write-Log "failed $($copy.Name) : $_"
|
||||
|
|
|
|||
Loading…
Reference in a new issue