Fehlerbehebung
This commit is contained in:
@@ -74,10 +74,10 @@ jobs:
|
||||
run: |
|
||||
cd repo
|
||||
FILE="${{ steps.xmlfile.outputs.file }}"
|
||||
PLUGIN="${{ steps.payload.outputs.plugin }}"
|
||||
NAME="${{ steps.payload.outputs.name }}"
|
||||
|
||||
# Entfernt den kompletten Plugin-Block
|
||||
sed -i "/<plugin name=\"${PLUGIN//\//\\/}\"/,/<\/plugin>/d" "$FILE"
|
||||
sed -i "/<plugin name=\"${NAME//\//\\/}\"/,/<\/plugin>/d" "$FILE"
|
||||
|
||||
- name: Template anwenden und neue XML erzeugen
|
||||
run: |
|
||||
@@ -110,7 +110,7 @@ jobs:
|
||||
# Neue Datei erzeugen
|
||||
{
|
||||
# Alles vor </plugins>
|
||||
sed '/<\/plugins>/q' "$FILE"
|
||||
sed '/<\/plugins>/d' "$FILE"
|
||||
|
||||
# Neuen Eintrag einfügen
|
||||
printf "%s\n" "$ENTRY"
|
||||
|
||||
Reference in New Issue
Block a user