summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFredrik Åslund <fredrik.aslund@umu.se>2013-12-13 08:26:04 +0100
committerFredrik Åslund <fredrik.aslund@umu.se>2013-12-13 08:26:04 +0100
commit49ff463522aca8cc9b1885d275f8fef926325556 (patch)
tree0321e78a6722ca45aac043b6aebed8f852ebafcb /scripts
parent7e58f1b28f265f575eaf56b1c5c803ccbf9a0dba (diff)
bindings updated for xenosmilus 8087
SWAMIDOPS-7103
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-metadata.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh
index 78e68514..957d427b 100755
--- a/scripts/get-metadata.sh
+++ b/scripts/get-metadata.sh
@@ -34,7 +34,11 @@ entityid=`echo "$metadata" | sed -n 's/.*entityID=['\''"]\([^"]*\)['\''"].*/\1/p
entityidfn=`echo "$entityid" | sed 's;https*://;;' | tr 'A-Z' 'a-z' | sed 's;/$;;' | sed 's/[^a-z0-9_.-]/-/g' | sed 's/\.xml$//;s/$/.xml/'`
[ -n "$entityidfn" ] || error "Failed to generate filename from entityid $entityid"
-echo -n "Save metadata into $entityidfn [Y/n]? "
+if [ -r "$entityidfn" ] ; then
+ echo -n "Replace $entityidfn with metadata [Y/n]? "
+else
+ echo -n "Save metadata into $entityidfn [Y/n]? "
+fi
read x
case $x in
Y|y|"")