From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31454 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pranesh Prakash Newsgroups: gmane.text.pandoc Subject: Re: check for latest version of pandoc Date: Sat, 24 Sep 2022 07:11:17 -0700 (PDT) Message-ID: <372d9912-6e1d-4e25-92e7-4fc637d4f64dn@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1810_1306490605.1664028677409" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27129"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDA2Z3PTWYIBBBVAXSMQMGQEIYWTZCQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 24 16:11:23 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f64.google.com ([209.85.161.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oc5sI-0006rV-KB for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 24 Sep 2022 16:11:22 +0200 Original-Received: by mail-oo1-f64.google.com with SMTP id w12-20020a4a274c000000b00476362afd07sf1181740oow.10 for ; Sat, 24 Sep 2022 07:11:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date; bh=CX0LAzWij9PJyXKFNdtYljHbZwokutSBtlQkj6kCa30=; b=gwVB7zQaUe4UDFKRD+Wcy9yAh+WwKVjq0k+leTi3HJJRhEPEgBTiWCAQDRwbXnD9RD +GoRsVytRrLtTPNUXfmpcrQ1ugQvDbpZrUjSOydl8toFaSaRNY5MyTRpoQHD+Wf8wzGE /cXmQ+bU0sufx+/p6xH4ik2IshjIq7qnKqFv+4tSQBRFw4MnUjfp30H1P3RsrjQDO/1U qYZITKRwsuFoezGN/TpT73e4OD7+Tc4HYvSnb+qldZf6O55QgJ+VCyRrltY1WCm170ZZ rSAZj2AodBP9dCImSf2OMPCZi0fP9e8iGl/FAmK0+k6eCuYY3G9E0vgKkL3Cn4g1oGxD 7hYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date; bh=CX0LAzWij9PJyXKFNdtYljHbZwokutSBtlQkj6kCa30=; b=EXEJTUbKcbpXlIpQQ3OS6i0euKO/hmKqvvLBcgD4q3ihPVIT9VMoxHUcr2k0z9j7G1 Jdq+m23neWCCvzj34erMWxTQWb523JfUSVnWPPoriU4fVB5WoWhMdWocp3goTLT/ocwS 7xpGXQgfnDBKRsjA1Kvcm9GEduMeBgShiS8jkpSc6WG+kzQYTl/EL/9s258EfYU9gEIQ /TLEaxbaqRLyivMo6G/1pKDMov2EkYSVdjztvAKusmPMWZCMR9BGl1ZsqFVFefbrrC5P TfW7Gur7ZM3FLOZ+pTseaxjPxTA6cOqJHk9t6gQQQAcC2mAJ3E899U3EQFtiqC/K3Vc0 /Tag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date; bh=CX0LAzWij9PJyXKFNdtYljHbZwokutSBtlQkj6kCa30=; b=UCFxGHXAo3ybzYO0OGqOVOMzW4Q14gQaBp37/WzMpOoNXfVDD5AcG5395Agl6HAzbY qZ/ZIfP98jMA2oyfQUJ5zrPe/JY71TLHrV0++6pidcbmWaLfwAhPOGenkw4fwfJp5kZG FNYmRWMv5rC/WUbwD4FPfdlC9a4wkUbUKOMiU3zfz7+v6nQn85GLrRN7pPquhAKqH7pI RI2a7jElNIjGeyS6aRM35quIoqfeLs82GvVmbBTO0v5vk5/q7mFIBmE0OFwL6fVI3jN0 2B4T81h7aJmKOaBdJz6KDeF0X5OJTiqtrkN+entTE88gIobmsj88ltbbhxtTSiJ1y5N/ lnfQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf0eFVS4uPOQuF4gtoWWpUSkfr+2h21IywBNtfx9rQX/afmsfprr 5LA1PFl/zfPTcJgprRbZZ9w= X-Google-Smtp-Source: AMsMyM7FHDuVnxXp1LZ+Dz4uC7Y1oe2LV68MF4d+I+uoofe+dmTSgbqhDgvlNQSBOIjP2bHqYTNTSQ== X-Received: by 2002:a05:6870:15d4:b0:12b:8d8d:1001 with SMTP id k20-20020a05687015d400b0012b8d8d1001mr7903073oad.137.1664028681204; Sat, 24 Sep 2022 07:11:21 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:606:0:b0:344:8f41:1800 with SMTP id 6-20020aca0606000000b003448f411800ls7266568oig.10.-pod-prod-gmail; Sat, 24 Sep 2022 07:11:18 -0700 (PDT) X-Received: by 2002:a05:6808:1b2a:b0:350:e5c0:59f9 with SMTP id bx42-20020a0568081b2a00b00350e5c059f9mr6634128oib.189.1664028678297; Sat, 24 Sep 2022 07:11:18 -0700 (PDT) In-Reply-To: X-Original-Sender: the.solipsist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31454 Archived-At: ------=_Part_1810_1306490605.1664028677409 Content-Type: multipart/alternative; boundary="----=_Part_1811_2070586252.1664028677409" ------=_Part_1811_2070586252.1664028677409 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_1811_2070586252.1664028677409 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear John,
You can convert this (not really tested + simplis= tic) 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=3D$(curl htt= ps://github.com/jgm/pandoc/releases/latest -s -L -I -o /dev/null -w '%{url_= effective}' | cut -d'/' -f8)
b=3D$(pandoc --version | cut -d' ' -f2 | he= ad -n1)
if [ "$a" =3D "$b" ]
 then echo 'latest'
&nbs= p;else echo 'not latest'
fi
```

Cheer= s,
Pranesh
On Thursday, 25 August, 2022 at 2:00:43 am UTC+5:30 john.a= ...@gmail.com 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_1811_2070586252.1664028677409-- ------=_Part_1810_1306490605.1664028677409--