diff options
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 |