From f823dffeba32cea8f16e5b6a413dff1f272c8510 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 25 Jun 2025 08:18:10 +0200 Subject: [PATCH] Updated some scripts --- scripts/build-repo.ps1 | 8 ++++---- scripts/check-repo.ps1 | 2 +- scripts/fetch-repo.ps1 | 2 +- scripts/switch-branch.ps1 | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/build-repo.ps1 b/scripts/build-repo.ps1 index 9ce990e9..53e2cff5 100755 --- a/scripts/build-repo.ps1 +++ b/scripts/build-repo.ps1 @@ -153,16 +153,16 @@ try { BuildFolder "$path" Set-Location "$previousPath" - $repoDirName = (Get-Item "$path").Name + $dirName = (Get-Item "$path").Name [int]$elapsed = $stopWatch.Elapsed.TotalSeconds if ($global:results -eq "") { - "✅ Build of 📂$repoDirName succeeded in $($elapsed)s." + "✅ Build of '$dirName' succeeded in $($elapsed)s." } 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 } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" Set-Location "$previousPath" exit 1 } diff --git a/scripts/check-repo.ps1 b/scripts/check-repo.ps1 index 89b6364e..97b5b2de 100755 --- a/scripts/check-repo.ps1 +++ b/scripts/check-repo.ps1 @@ -74,6 +74,6 @@ try { "✅ Checked 📂$repoDirName repo in $($elapsed)s." exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" exit 1 } diff --git a/scripts/fetch-repo.ps1 b/scripts/fetch-repo.ps1 index 91950ead..208e134c 100755 --- a/scripts/fetch-repo.ps1 +++ b/scripts/fetch-repo.ps1 @@ -38,6 +38,6 @@ try { "✅ Updates fetched into 📂$repoDirName repo in $($elapsed)s." exit 0 # success } catch { - "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" + "⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" exit 1 } diff --git a/scripts/switch-branch.ps1 b/scripts/switch-branch.ps1 index c83a92b4..894eefb1 100755 --- a/scripts/switch-branch.ps1 +++ b/scripts/switch-branch.ps1 @@ -63,6 +63,6 @@ try { "✅ Switched repo '$repoDirName' to '$branchName' branch in $($elapsed)s." exit 0 # success } catch { - "⚠️ Error: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" + "⚠️ ERROR: $($Error[0]) in script line $($_.InvocationInfo.ScriptLineNumber)" exit 1 }