Skip to content

Commit

Permalink
changed xml query
Browse files Browse the repository at this point in the history
  • Loading branch information
privatezero committed Feb 14, 2017
1 parent 71e99ba commit 745d805
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 745d805

Please sign in to comment.