public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* check for latest version of pandoc
@ 2022-08-24 20:30 John O'Regan
       [not found] ` <CALwjjMgS45dOb+t_akw=Kh0Se8R5nxNhD6g6f10rzWE72ivXeg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: John O'Regan @ 2022-08-24 20:30 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hello All!

Sorry if this has come up before, but is there an easy way to check if
the version of Pandoc installed locally is the latest version?

I'm using Windows 10.

Thanks!

John


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: check for latest version of pandoc
       [not found] ` <CALwjjMgS45dOb+t_akw=Kh0Se8R5nxNhD6g6f10rzWE72ivXeg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2022-09-24 14:11   ` Pranesh Prakash
  0 siblings, 0 replies; 2+ messages in thread
From: Pranesh Prakash @ 2022-09-24 14:11 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1211 bytes --]

Dear John,
You can convert this (not really tested + simplistic) bash script to 
whatever its Windows equivalent would be and run it to check if the version 
you have is the latest (released on Github) or not.

```
#/usr/bin/env bash
a=$(curl https://github.com/jgm/pandoc/releases/latest -s -L -I -o 
/dev/null -w '%{url_effective}' | cut -d'/' -f8)
b=$(pandoc --version | cut -d' ' -f2 | head -n1)
if [ "$a" = "$b" ]
 then echo 'latest'
 else echo 'not latest'
fi
```

Cheers,
Pranesh
On Thursday, 25 August, 2022 at 2:00:43 am UTC+5:30 john.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 
wrote:

> Hello All!
>
> Sorry if this has come up before, but is there an easy way to check if
> the version of Pandoc installed locally is the latest version?
>
> I'm using Windows 10.
>
> Thanks!
>
> John
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/372d9912-6e1d-4e25-92e7-4fc637d4f64dn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1846 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-24 14:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-24 20:30 check for latest version of pandoc John O'Regan
     [not found] ` <CALwjjMgS45dOb+t_akw=Kh0Se8R5nxNhD6g6f10rzWE72ivXeg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-09-24 14:11   ` Pranesh Prakash

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).