From b74cd18743d648e138802cd1744874f9b4a6fe9f Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Sat, 28 Sep 2024 12:42:23 +0200 Subject: [PATCH] CI: nouvelle erreur de syntaxe --- .forgejo/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 725daca..72bfa3f 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -34,7 +34,7 @@ jobs: "-"*IN* | "+"*IN*) if [ ! -z $CURRENT_ZONE ]; then if [[ $line == -* ]]; then # Enregistrement supprimé - RECORD=$(echo "$line" | sed 's/^+//' | sed "s/^\([^ ]\+\)\(\s\+\)\(IN\s\+\)\([^ ]\+\)\(\s\+\)/\1.${CURRENT_ZONE}.\2\3\4\5/" | sed 's/@.//') + RECORD=$(echo "$line" | sed 's/^-//' | sed "s/^\([^ ]\+\)\(\s\+\)\(IN\s\+\)\([^ ]\+\)\(\s\+\)/\1.${CURRENT_ZONE}.\2\3\4\5/" | sed 's/@.//') echo "update delete $RECORD" echo -e "server ${{vars.DNS_SERVER}}\nttl 3600\nupdate delete $RECORD\nsend" > temp_delete nsupdate -k temp_keyfile temp_delete