diff options
Diffstat (limited to 'metadata/scripts/remove_entity.sh')
-rwxr-xr-x | metadata/scripts/remove_entity.sh | 8 |
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 |