summaryrefslogtreecommitdiff
path: root/metadata/scripts/remove_entity.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-11-06 15:12:20 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-11-06 15:12:20 +0100
commita9fa6d5551f047e976e624c1b6cc82e8c4fbb76d (patch)
treef8c0f59a36ae572e3f67045435b27e15bf9d0b44 /metadata/scripts/remove_entity.sh
parentb4f5e684ecb318e10735414c683787d435bae7a5 (diff)
Cleaning up old files left after we stopped signing on mds1/2. Done by Bjorn and Jocarmd-2023-11-06-v02
Diffstat (limited to 'metadata/scripts/remove_entity.sh')
-rwxr-xr-xmetadata/scripts/remove_entity.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/metadata/scripts/remove_entity.sh b/metadata/scripts/remove_entity.sh
index 60645a7e..4906bf88 100755
--- a/metadata/scripts/remove_entity.sh
+++ b/metadata/scripts/remove_entity.sh
@@ -40,7 +40,7 @@ file=$(find swamid-testing swamid-2.0 swamid-edugain -name "$entityidfn" | head
if [ -r "$file" ]; then
echo "---------------------"
- grep "$file" ./*.mxml
+ echo "$file"
echo "---------------------"
echo -n "OK to remove ? [Y/n]"
read -r x
@@ -52,12 +52,6 @@ if [ -r "$file" ]; then
echo
git rm "$file"
- grep "$file" ./*.mxml | sed 's/\(.*\.mxml\): <xi:include href=".*"\/>/\1/' | while read -r mxmlfile ; do
- sed -i.bak "/\/$entityidfn/d" "$mxmlfile"
- if [ -f "$mxmlfile".bak ]; then
- rm "$mxmlfile".bak
- fi
- done
git diff
git status
else