Browse Source

add support for XML (flat open document format)

Daniel Sheffield 2 years ago
parent
commit
1a03e7d398
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gardening-calendar.sh

+ 1 - 1
gardening-calendar.sh

@@ -55,7 +55,7 @@ RULE="$(realpath "${4}")" || exit_help 4 "Ruled page document not specified"
 for input in "${RULE}" "${TITLE}" "${CAL}"; do
     [ -e "${input}" ] || die -1 "File doesn't exist: '${input}'"
     ftype=$(file -b "${input}")
-    echo "${ftype}" | grep 'OpenDocument\|PDF' >/dev/null || die -1 "Unsupported file type: ${ftype}"
+    echo "${ftype}" | grep 'OpenDocument\|PDF\|XML' >/dev/null || die -1 "Unsupported file type: ${ftype}"
     FTYPES["${input}"]="${ftype}"
 done
 cat <<EOF >&2