refactor(scripts): standardize scripts and improve readability
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s

- Removed unnecessary comments and adjusted formatting for clarity
- Translated German comments, logs, and error messages to English
- Improved consistency in variable naming and messages across scripts
- Enhanced error handling and output for better user feedback
This commit is contained in:
2025-06-14 19:50:26 +02:00
parent bb27eccc86
commit 041d7e9a8a
4 changed files with 27 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
# Optional inputs (positionals) oder Fallback auf Umgebungsvariablen
# Optional inputs (positionals) or fallback to environment variables
AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}"
AUTHOR_EMAIL="${2:-${CI_COMMIT_AUTHOR_EMAIL:-ci@bot.none}}"
@@ -12,18 +12,18 @@ echo " Email: $AUTHOR_EMAIL"
git config --global user.name "$AUTHOR_NAME"
git config --global user.email "$AUTHOR_EMAIL"
# Prüfung, ob die Werte korrekt gesetzt wurden
# Check if the values were set correctly
CONFIGURED_NAME=$(git config --global user.name)
CONFIGURED_EMAIL=$(git config --global user.email)
if [[ "$CONFIGURED_NAME" != "$AUTHOR_NAME" ]]; then
echo "❌ Fehler: Git-Benutzername wurde nicht korrekt gesetzt!" >&2
echo "❌ Error: Git username was not set correctly!" >&2
exit 1
fi
if [[ "$CONFIGURED_EMAIL" != "$AUTHOR_EMAIL" ]]; then
echo "❌ Fehler: Git-Benutzer-E-Mail wurde nicht korrekt gesetzt!" >&2
echo "❌ Error: Git email was not set correctly!" >&2
exit 1
fi
echo "✅ Git-Konfiguration erfolgreich abgeschlossen."
echo "✅ Git configuration completed successfully."