Skip to content

Commit

Permalink
Merge pull request #131 from mediamicroservices/add-import-schema-script
Browse files Browse the repository at this point in the history
changed xml query
  • Loading branch information
privatezero authored Feb 14, 2017
2 parents e37da56 + 745d805 commit 4376e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmfunctions
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ _report_schema_db(){
if [ -z "${xmlschema}" ] ; then
xmlschema="$LTO_LOGS/${TAPE_SERIAL}.schema"
fi
schema_sorted=$(xml sel -t -m "/ltfsindex/directory/contents/directory/contents/file" -v "concat(name,'|',length, '|', modifytime)" -o "|" -m "ancestor-or-self::directory" -v "name" -o "/" -b -n "${xmlschema}")
schema_sorted=$(xml sel -t -m ".//file" -v "concat(name,'|',length, '|', modifytime)" -o "|" -m "ancestor-or-self::directory" -v "name" -o "/" -b -n "${xmlschema}")
schema_tape=$(basename "${xmlschema}" | cut -d'.' -f1)
IFS=$(echo -en "\n\b")
(for i in ${schema_sorted}; do LINE=$i;
Expand Down

0 comments on commit 4376e0e

Please sign in to comment.