From bff49abf3d2eefe8983db2a0aa57a46fc099f1dd Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Tue, 20 Aug 2024 17:29:06 +0200 Subject: [PATCH] .forgejo/workflows/ci.yaml: WIP --- .forgejo/workflows/ci.yaml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index a2a43d0..8f98418 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -15,33 +15,33 @@ jobs: cd dns git diff HEAD^ HEAD > zone_diff.txt echo $(cat zone_diff.txt) - # while IFS= read -r line; do - # case "$line" in - # "--- "*".zone") - # CURRENT_ZONE=$(basename "$line" .zone | sed 's/--- //') - # ;; - # "+++"*) - # ;; - # "-"* | "+"*) - # if [[ $line == -* ]]; then # Enregistrement supprimé - # RECORD=$(echo "$line" | sed 's/^-//') - # echo "- $RECORD" + while IFS= read -r line; do + case "$line" in + "--- "*".zone") + CURRENT_ZONE=$(basename "$line" .zone | sed 's/--- //') + ;; + "+++"*) + ;; + "-"* | "+"*) + if [[ $line == -* ]]; then # Enregistrement supprimé + RECORD=$(echo "$line" | sed 's/^-//') + echo "- $RECORD" # nsupdate -k $TSIG_KEY <