Make Self Modification impossible for 'tools/Do-PreProcessing.ps1' Script - Make the workingdir same as sync.PSScriptRoot for consistency

This commit is contained in:
Mr.k
2024-07-26 05:36:58 +03:00
parent a57c6a8b40
commit 5f885087fe
2 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@ $workingdir = $PSScriptRoot
# Variable to sync between runspaces
$sync = [Hashtable]::Synchronized(@{})
$sync.PSScriptRoot = $PSScriptRoot
$sync.PSScriptRoot = $workingdir
$sync.configs = @{}
function Update-Progress {