From ec0899fed3450db92b8f49d41a06db4309e68953 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 23 Dec 2024 14:35:32 +0000 Subject: [PATCH] Update roles/home/scripts/commits.sh --- roles/home/scripts/commits.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/home/scripts/commits.sh b/roles/home/scripts/commits.sh index 94e7c18..3195bab 100644 --- a/roles/home/scripts/commits.sh +++ b/roles/home/scripts/commits.sh @@ -187,3 +187,17 @@ create_pr_from_commit() { git stash pop fi } + +anonymize_multiple() { + while IFS= read -r line; do + result="$line" + # Simple sed with multiple patterns + echo "$result" | sed ' + s/github.pie.apple.com/github.com/g; + s/Kerosene/org/g; + s/kerosene/org/g; + s/Shelob/example/g; + s/shelob/example/g; + ' + done +}