From 89ffc39cfdb424e11ea66c4e313cdfebbe59d803 Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Wed, 18 May 2022 16:27:33 +0200 Subject: SWAMID-936 Removed https://play.hkr.se --- scripts/remove_entity.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts') 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\): /\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 -- cgit v1.2.3