[bin] Let hetzner-invoice fixer just display the path to the fixed file
This commit is contained in:
parent
e7e8d40b42
commit
563080b9c1
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
TMP=$(mktemp -d)
|
||||
NAME=$(basename "${1}" .pdf)
|
||||
FIXED="${NAME}-fixed.pdf"
|
||||
FIXED="${TMP}/${NAME}-fixed.pdf"
|
||||
pdftops "${1}" - | ps2pdf12 - "${FIXED}"
|
||||
xdg-open "${FIXED}"
|
||||
echo "${FIXED}"
|
||||
|
|
Loading…
Reference in New Issue