Reinaldy Rafli 1b88e90e30
Introduce patches with external kafka (#3521)
* 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
2025-06-13 08:55:30 +00:00

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
}