Bugfix preview pdf

This commit is contained in:
Neptune 2020-09-10 10:12:43 +02:00
parent 306ebf8833
commit ef4d3d90ae

View file

@ -47,8 +47,8 @@ video() {
}
pdf() {
[ ! -f "$CACHEFILE" ] && pdftoppm -png -singlefile "$1" "$CACHEFILE" -scale-to 1024
draw "$CACHEFILE"
[ ! -f "$CACHEFILE.png" ] && pdftoppm -png -singlefile "$1" "$CACHEFILE" -scale-to 1024
draw "$CACHEFILE.png"
}
epub() {
@ -80,7 +80,8 @@ main() {
video "$1";;
inode/directory)
[ -z "${1##*/..*}" ] && echo || exa -Fa --color always "$1";;
*);;
*)
text "$1";;
esac
}