summaryrefslogtreecommitdiff
path: root/scripts/get-metadata.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2021-03-26 12:00:23 +0100
committerBjörn Mattsson <bjorn@sunet.se>2021-03-26 12:00:23 +0100
commit4c8d727720a807ff972ebfbce97256cc21b4cbca (patch)
tree7132f8ee11b9b9d420cc8cf3d1344722b7c26061 /scripts/get-metadata.sh
parente49186a36fd8a0dd6a8184cd565f2a7e583d29cc (diff)
SWAMID-153, Två Entity ID
Diffstat (limited to 'scripts/get-metadata.sh')
-rwxr-xr-xscripts/get-metadata.sh8
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 --