Updated some scripts

This commit is contained in:
Markus Fleschutz 2024-09-24 20:53:46 +02:00
parent fdeead2b52
commit db8e7e1766
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@
(2/4) Checking local repository... C:\Repos\rust (2/4) Checking local repository... C:\Repos\rust
(3/4) Removing untracked files in repository... (3/4) Removing untracked files in repository...
(4/4) Removing untracked files in submodules... (4/4) Removing untracked files in submodules...
Cleaned up 📂rust repo in 2s. Cleaned up 📂rust repo in 2s.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -45,7 +45,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Cleaned up 📂$repoName repo in $($elapsed)s." " Cleaned up 📂$repoName repo in $($elapsed)s."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -11,7 +11,7 @@
(2/4) Checking local repository... C:\Repos\rust (2/4) Checking local repository... C:\Repos\rust
(3/4) Pulling remote updates... (3/4) Pulling remote updates...
(4/4) Updating submodules... (4/4) Updating submodules...
Updates pulled into 📂rust repo in 14s. Updates pulled into 📂rust repo in 14s.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -45,7 +45,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" } if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Updates pulled into 📂$pathToRepoName repo in $($elapsed)s." " Updates pulled into 📂$pathToRepoName repo in $($elapsed)s."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" "⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"

View File

@ -15,7 +15,7 @@
(4/6) Switching to branch 'main'... (4/6) Switching to branch 'main'...
(5/6) Pulling remote updates... (5/6) Pulling remote updates...
(6/6) Updating submodules... (6/6) Updating submodules...
Switched 📂rust repo to 'main' branch in 22s. Switched 📂rust repo to 'main' branch in 22s.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -60,7 +60,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" } if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Switched 📂$repoDirName repo to '$branchName' branch in $($elapsed)s." " Switched 📂$repoDirName repo to '$branchName' branch in $($elapsed)s."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" "⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"