1
0
Fork 0

changes again

This commit is contained in:
Arthur Khachaturov 2024-12-07 21:32:02 +03:00
parent 94d2955ab0
commit f4b88690f7
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
12 changed files with 94 additions and 70 deletions

View file

@ -34,9 +34,9 @@ main() {
"--template=${HOME}/.local/share/default.html"
"--variable=published_time=$(date -Iseconds -d"$(stat "$1" | grep 'Birth:' | sed 's/.*Birth:\s//')")"
)
pandoc "${pandoc_options[@]}" <(shift_header "$1") > "$FILENAME" 2>/dev/null &&
pandoc "${pandoc_options[@]}" <(shift_header "$1") > "$FILENAME" &&
echo "$FILENAME" &&
firefox "$FILENAME" 2>/dev/null & disown
firefox "$FILENAME" & disown
sleep 5
cleanup