mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 20:13:04 +00:00
Fix latexmk version checking
This commit is contained in:
parent
69f79386f4
commit
b461178ff0
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ module.exports = (grunt) ->
|
|||
|
||||
checkLatexmk: (callback = (error) ->) ->
|
||||
grunt.log.write "Checking latexmk is installed... "
|
||||
exec "latexmk -version", (error, stdout, stderr) ->
|
||||
exec "latexmk --version", (error, stdout, stderr) ->
|
||||
if error? and error.message.match("command not found")
|
||||
grunt.log.error "FAIL."
|
||||
grunt.log.errorlns """
|
||||
|
@ -179,7 +179,7 @@ module.exports = (grunt) ->
|
|||
grunt.log.error "Unknown latexmk version"
|
||||
else
|
||||
version = m[1]
|
||||
if semver.gt(version + ".0", "4.39.0")
|
||||
if semver.gte(version + ".0", "4.39.0")
|
||||
grunt.log.writeln "OK."
|
||||
grunt.log.writeln "Running latexmk version #{version}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue