From: Edward Delaporte Date: Wed, 1 Apr 2020 13:27:28 +0000 (-0500) Subject: Set a flag to indicate when finished. X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/c9a017be7a059c5228253cb2fc9c5fe93809c056 Set a flag to indicate when finished. --- diff --git a/.gitignore b/.gitignore index 397b4a7..dde2b51 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.log +DONE.md \ No newline at end of file diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 9cefade..0ff0284 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -7,10 +7,10 @@ $sourceMeLine = '$profileContents = [string]::join([environment]::newline, (get- $sourceMeLine += $sourceMeFile $sourceMeLine += '));invoke-expression $profileContents' -Write-Host $sourceMeLine +# Write-Host $sourceMeLine $doneFlagFile = "./DONE.md" -$doBootStrap = Test-Path -Path $doneFlagFile +$doBootStrap = -Not (Test-Path -Path $doneFlagFile) $profileContents = Get-Content $profile if(! $profileContents -contains $sourceMeLine) {