mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-04 22:50:05 +02:00
Updated some scripts
This commit is contained in:
@ -153,16 +153,16 @@ try {
|
|||||||
BuildFolder "$path"
|
BuildFolder "$path"
|
||||||
Set-Location "$previousPath"
|
Set-Location "$previousPath"
|
||||||
|
|
||||||
$repoDirName = (Get-Item "$path").Name
|
$dirName = (Get-Item "$path").Name
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
if ($global:results -eq "") {
|
if ($global:results -eq "") {
|
||||||
"✅ Build of 📂$repoDirName succeeded in $($elapsed)s."
|
"✅ Build of '$dirName' succeeded in $($elapsed)s."
|
||||||
} else {
|
} else {
|
||||||
"✅ Build of 📂$repoDirName succeeded in $($elapsed)s, results in: 📂$($global:results)"
|
"✅ Build of '$dirName' succeeded in $($elapsed)s, results in: 📂$($global:results)"
|
||||||
}
|
}
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"
|
||||||
Set-Location "$previousPath"
|
Set-Location "$previousPath"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,6 @@ try {
|
|||||||
"✅ Checked 📂$repoDirName repo in $($elapsed)s."
|
"✅ Checked 📂$repoDirName repo in $($elapsed)s."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,6 @@ try {
|
|||||||
"✅ Updates fetched into 📂$repoDirName repo in $($elapsed)s."
|
"✅ Updates fetched into 📂$repoDirName repo in $($elapsed)s."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,6 @@ try {
|
|||||||
"✅ Switched repo '$repoDirName' to '$branchName' branch in $($elapsed)s."
|
"✅ Switched repo '$repoDirName' 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)"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user