diff --git a/Migration-from-Devine.md b/Migration-from-Devine.md index 69fa616..f0db4d2 100644 --- a/Migration-from-Devine.md +++ b/Migration-from-Devine.md @@ -8,11 +8,13 @@ find unshackle/services/ -type f -name "*.py" -exec sed -i 's/from devine/from u ``` Windows ```powershell -Get-ChildItem "unshackle/services" -Recurse -Filter *.py | +Get-ChildItem -Path "unshackle/services" -Recurse -Filter *.py -File | ForEach-Object { - (Get-Content -Raw $_) -replace 'from devine', 'from unshackle' | - Set-Content $_ + $f = $_.FullName + (Get-Content -Raw -LiteralPath $f) -replace 'from devine', 'from unshackle' | + Set-Content -LiteralPath $f } + ``` MacOS ```bash