mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-15 14:38:17 +02:00
Improve error message
This commit is contained in:
parent
673779a2b9
commit
54d9084c0e
@ -24,10 +24,10 @@ try {
|
|||||||
set-location "$RepoDir"
|
set-location "$RepoDir"
|
||||||
|
|
||||||
& git fetch --all --recurse-submodules
|
& git fetch --all --recurse-submodules
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
& git switch --recurse-submodules $Branch
|
& git switch --recurse-submodules $Branch
|
||||||
if ($lastExitCode -ne "0") { throw "'git switch --recurse-submodules $Branch' failed" }
|
if ($lastExitCode -ne "0") { throw "'git switch $Branch' failed" }
|
||||||
|
|
||||||
& git submodule update --init --recursive
|
& git submodule update --init --recursive
|
||||||
if ($lastExitCode -ne "0") { throw "'git submodule update' failed" }
|
if ($lastExitCode -ne "0") { throw "'git submodule update' failed" }
|
||||||
|
Loading…
Reference in New Issue
Block a user