diff options
Diffstat (limited to 'scripts/get-metadata.sh')
-rwxr-xr-x | scripts/get-metadata.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh index 39e401c2..913bda72 100755 --- a/scripts/get-metadata.sh +++ b/scripts/get-metadata.sh @@ -22,6 +22,12 @@ 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/" @@ -69,7 +75,7 @@ case $x in read x case $x in Y|y|"") - sed -i "s;^</md:EntitiesDescriptor>; <xi:include href=\"swamid-2.0/$entityidfn\"/>\n&;" ../swamid-sp-2.0.mxml + $SEDI "s;^</md:EntitiesDescriptor>; <xi:include href=\"swamid-2.0/$entityidfn\"/>\n&;" ../swamid-sp-2.0.mxml echo -- tail -n 10 ../swamid-sp-2.0.mxml | sed 's/^/ /' echo -- |