Skip to content

Commit 982b91d

Browse files
committed
Wrong version checking
*gnuplot* is at version `5.0`. So, even though `0` < `4`, `5` > `4`.
1 parent 78b5979 commit 982b91d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gnuplot.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ local function findgnuplotexe()
190190
if v < 4 then
191191
error('gnuplot version 4 is required')
192192
end
193-
if vv < 4 then
193+
if v == 4 and vv < 4 then
194194
-- try to find gnuplot44
195195
if o == 'linux' and paths.filep('/usr/bin/gnuplot44') then
196196
local ss = '/usr/bin/gnuplot44'

0 commit comments

Comments
 (0)