diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get-metadata.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh index 26534d3c..c3be62a4 100755 --- a/scripts/get-metadata.sh +++ b/scripts/get-metadata.sh @@ -22,12 +22,6 @@ EOF exit 1 fi -if [ `uname -s` == "Darwin" ]; then - SEDI="sed -i '' " -else - SEDI="sed -i" -fi - script_cwd=`dirname "$0"` if test -d swamid-2.0 ; then echo "Moving into swamid-2.0/" @@ -90,7 +84,10 @@ case $x in read x case $x in Y|y|"") - $SEDI "s;^</md:EntitiesDescriptor>; <xi:include href=\"swamid-2.0/$entityidfn\"/>\n&;" ../swamid-sp-2.0.mxml + sed -i.bak "s;^</md:EntitiesDescriptor>; <xi:include href=\"swamid-2.0/$entityidfn\"/>\n&;" ../swamid-sp-2.0.mxml + if [ -f ../swamid-sp-2.0.mxml.bak ]; then + rm ../swamid-sp-2.0.mxml.bak + fi echo -- tail -n 10 ../swamid-sp-2.0.mxml | sed 's/^/ /' echo -- |