fix(build): use correctly escaped Go-source pattern

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-10-21 15:39:37 +02:00
1 parent 5b0d53a212
commit 34bac330c6
1 file changed
+2 -2
+2 -2
View File
@@ -8,9 +8,9 @@ cd "$ROOT_DIR"
# A stale local source (e.g. destination_one.go) can break an otherwise green CI.
# Refuse to build instead of silently deleting potentially valuable local work.
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
EXTRA_GO="$(git ls-files --others --exclude-standard -- '*.go' | grep -E '^[^/]+\\.go$' || true)"
EXTRA_GO="$(git ls-files --others --exclude-standard -- '*.go' | grep -E '^[^/]+\.go$' || true)"
if [[ -n "$EXTRA_GO" ]]; then
printf 'Build abgebrochen: nicht versionierte Go-Dateien im Projektverzeichnis:\\n%s\\n' "$EXTRA_GO" >&2
printf 'Build abgebrochen: nicht versionierte Go-Dateien im Projektverzeichnis:\n%s\n' "$EXTRA_GO" >&2
echo "Bitte Dateien sichern und aus dem Projektverzeichnis verschieben, bevor du neu baust." >&2
exit 1
fi