mirror of
https://github.com/getsentry/self-hosted.git
synced 2025-12-08 19:46:14 +00:00
* Introduce patches with external kafka * Fix pre-commit hooks * Patch relay config file * Documentation for patches stuff * Provide more helpful information for Docker Compose Override file * Fix grep command * ref: rename to 'optional-modifications' * chore(pre-commit): exclude .patch extension * chore(pre-commit): escape backslash * chore(pre-commit): put exclude field on hooks * chore(pre-commit): put exclude field on top level Based on https://pre-commit.com/#top_level-exclude * chore(pre-commit): move to even more top level
16 lines
265 B
Bash
Executable File
16 lines
265 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
test "${DEBUG:-}" && set -x
|
|
|
|
function patch_file() {
|
|
target="$1"
|
|
content="$2"
|
|
if [[ -f "$target" ]]; then
|
|
echo "🙈 Patching $target ..."
|
|
patch -p1 <"$content"
|
|
else
|
|
echo "🙊 Skipping $target ..."
|
|
fi
|
|
}
|