From c9a017be7a059c5228253cb2fc9c5fe93809c056 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Wed, 1 Apr 2020 08:27:28 -0500 Subject: [PATCH] Set a flag to indicate when finished. --- .gitignore | 1 + bootstrap.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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) { -- 2.47.3