mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-23 23:29:02 +01:00
Updated some scripts
This commit is contained in:
parent
fdeead2b52
commit
db8e7e1766
@ -12,7 +12,7 @@
|
||||
⏳ (2/4) Checking local repository... C:\Repos\rust
|
||||
⏳ (3/4) Removing untracked files in repository...
|
||||
⏳ (4/4) Removing untracked files in submodules...
|
||||
✔️ Cleaned up 📂rust repo in 2s.
|
||||
✅ Cleaned up 📂rust repo in 2s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -45,7 +45,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" }
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Cleaned up 📂$repoName repo in $($elapsed)s."
|
||||
"✅ Cleaned up 📂$repoName repo in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
@ -11,7 +11,7 @@
|
||||
⏳ (2/4) Checking local repository... C:\Repos\rust
|
||||
⏳ (3/4) Pulling remote updates...
|
||||
⏳ (4/4) Updating submodules...
|
||||
✔️ Updates pulled into 📂rust repo in 14s.
|
||||
✅ Updates pulled into 📂rust repo in 14s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -45,7 +45,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Updates pulled into 📂$pathToRepoName repo in $($elapsed)s."
|
||||
"✅ Updates pulled into 📂$pathToRepoName repo in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"
|
||||
|
@ -15,7 +15,7 @@
|
||||
⏳ (4/6) Switching to branch 'main'...
|
||||
⏳ (5/6) Pulling remote updates...
|
||||
⏳ (6/6) Updating submodules...
|
||||
✔️ Switched 📂rust repo to 'main' branch in 22s.
|
||||
✅ Switched 📂rust repo to 'main' branch in 22s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -60,7 +60,7 @@ try {
|
||||
if ($lastExitCode -ne "0") { throw "'git submodule update' failed with exit code $lastExitCode" }
|
||||
|
||||
[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
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"
|
||||
|
Loading…
Reference in New Issue
Block a user