Improved both scripts

This commit is contained in:
Markus Fleschutz
2021-03-10 10:51:59 +01:00
parent 68711177c5
commit 6fa8ed3a78
2 changed files with 9 additions and 7 deletions

View File

@ -11,7 +11,7 @@ param($RepoDir = "$PWD")
try {
write-output "Fetching repository $RepoDir ..."
if (-not(test-path "$RepoDir")) { throw "Repository at $RepoDir is non-existing" }
if (-not(test-path "$RepoDir")) { throw "Can't access Git repository at: $RepoDir" }
set-location "$RepoDir"
& git --version