Skip to content

Commit

Permalink
Ensure stylesheet exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed Jan 14, 2017
1 parent 42ffd5c commit 6e9a9c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/md_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ getEntityFromFile () {
echo "ERROR: $FUNCNAME: directory does not exist: $LIB_DIR" >&2
return 2
fi
if [ ! -f "$LIB_DIR/extract_entity.xsl" ]; then
echo "ERROR: $FUNCNAME: stylesheet does not exist: $LIB_DIR/extract_entity.xsl" >&2
return 2
fi

# get the entity descriptor from the metadata file using parameterized xslt
entityDescriptor=$( /bin/cat $md_path \
Expand Down

0 comments on commit 6e9a9c9

Please sign in to comment.