We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf2d20 commit 33795bcCopy full SHA for 33795bc
configure
@@ -362,11 +362,15 @@ fi
362
363
if [ ! -z "$CFG_PANDOC" ]
364
then
365
- read PV_MAJOR PV_MINOR <<<$(pandoc --version | awk '/^pandoc/ {split($2, PV, "."); print PV[1] " " PV[2]}')
+ PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
366
+ PANDOC_VER=${PANDOC_VER_LINE#pandoc }
367
+ PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]}
368
+ PV_MAJOR=${PV_MAJOR_MINOR%.[0-9]}
369
+ PV_MINOR=${PV_MAJOR_MINOR#[0-9].}
370
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
371
- step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
- BAD_PANDOC=1
372
+ step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
373
+ BAD_PANDOC=1
374
fi
375
376
0 commit comments