Improved the scripts

This commit is contained in:
Markus Fleschutz
2021-02-18 20:17:55 +01:00
parent d5032a9d02
commit 87409780ff
62 changed files with 221 additions and 202 deletions

View File

@ -8,6 +8,10 @@
param($Branch = "")
if ($Branch -eq "") {
$Branch = read-host "Enter branch name to switch to"
}
try {
& git --version
} catch {
@ -16,10 +20,6 @@ try {
}
try {
if ($Branch -eq "") {
$Branch = read-host "Enter branch name to switch to"
}
& git switch --recurse-submodules $Branch
if ($lastExitCode -ne "0") { throw "'git switch --recurse-submodules $Branch' failed" }