Skip to content

Commit

Permalink
Don't fail, if /etc/papersize can't be read.
Browse files Browse the repository at this point in the history
  • Loading branch information
gutschke committed Dec 17, 2014
1 parent 2990e20 commit 1c2c627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdf2odt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ format="${out##*.}"; format="$(printf '%s' "${format}"|tr A-Z a-z)"
[ "x${format}" = "xodt" -o "x${format}" = "xods" ] || format="odt"

# Select default papersize.
papersize="${PAPERSIZE:-$(cat "${PAPERCONF:-/etc/papersize}" 2>/dev/null)}"
papersize="${PAPERSIZE:-$(cat "${PAPERCONF:-/etc/papersize}" 2>/dev/null || :)}"
[ "x${papersize}" != "a4" ] && papersize="letter"

# Parse position-independent command line flags.
Expand Down

0 comments on commit 1c2c627

Please sign in to comment.