[bin] Let hetzner-invoice fixer just display the path to the fixed file

This commit is contained in:
Sebastian Schulze 2023-01-10 00:17:53 +01:00
parent e7e8d40b42
commit 563080b9c1
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 3 additions and 2 deletions

View File

@ -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}"