diff options
author | Björn Mattsson <bjorn@sunet.se> | 2022-05-18 16:27:33 +0200 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2022-05-18 16:27:33 +0200 |
commit | 89ffc39cfdb424e11ea66c4e313cdfebbe59d803 (patch) | |
tree | 455ccf9c04d6578f28e2f89b63063e6f2d8c8166 /scripts/remove_entity.sh | |
parent | 078d1c7b8613105e25f9f8ce7855537220a4164d (diff) |
SWAMID-936 Removed https://play.hkr.se
Diffstat (limited to 'scripts/remove_entity.sh')
-rwxr-xr-x | scripts/remove_entity.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/remove_entity.sh b/scripts/remove_entity.sh index 0d418b45..2de5d0ba 100755 --- a/scripts/remove_entity.sh +++ b/scripts/remove_entity.sh @@ -29,7 +29,7 @@ file="swamid-2.0/$entityidfn" if [ -r "$file" ]; then echo "---------------------" - grep $entityidfn *.mxml sp-with-simplesign + grep "/$entityidfn" *.mxml sp-with-simplesign echo "---------------------" echo -n "OK to remove ? [Y/n]" read x @@ -46,18 +46,18 @@ if [ -r "$file" ]; then fi if (grep -q $entityidfn sp-with-simplesign); then if ( $MacOSX ) ; then - sed -i "" "/$entityidfn/d" sp-with-simplesign + sed -i "" "/\/$entityidfn/d" sp-with-simplesign else - sed -i "/$entityidfn/d" sp-with-simplesign + sed -i "/\/$entityidfn/d" sp-with-simplesign fi fi git rm $file grep $file *.mxml | sed 's/\(.*\.mxml\): <xi:include href=".*"\/>/\1/' | while read mxmlfile ; do if ( $MacOSX ) ; then - sed -i "" "/$entityidfn/d" $mxmlfile + sed -i "" "/\/$entityidfn/d" $mxmlfile else - sed -i "/$entityidfn/d" $mxmlfile + sed -i "/\/$entityidfn/d" $mxmlfile fi done git diff |