mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-22 07:58:34 +01:00
Minor
This commit is contained in:
parent
abf1a706ac
commit
2e0827a873
@ -1,15 +1,15 @@
|
||||
# office: libreoffice
|
||||
|
||||
lo() {
|
||||
doc() {
|
||||
# File produced by libreoffice
|
||||
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
||||
|
||||
libreoffice \
|
||||
--headless \
|
||||
--convert-to jpg \
|
||||
libreoffice \
|
||||
--headless \
|
||||
--convert-to jpg \
|
||||
--outdir "$cache_d" \
|
||||
"$f" >/dev/null &&
|
||||
mv -- "$cache_d/$jpg.jpg" "$cache_f"
|
||||
}
|
||||
|
||||
convert_and_show_image lo
|
||||
convert_and_show_image doc
|
||||
|
Loading…
Reference in New Issue
Block a user