mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-28 01:10:42 +00:00
fix(commands/doc): run stat in pcall
This commit is contained in:
parent
e2cf417144
commit
cdd07a4981
@ -4,7 +4,7 @@ local lunacolors = require 'lunacolors'
|
||||
|
||||
commander.register('doc', function(args, sinks)
|
||||
local moddocPath = hilbish.dataDir .. '/docs/'
|
||||
local stat = fs.stat '.git/refs/heads/extended-job-api'
|
||||
local stat = pcall(fs.stat, '.git/refs/heads/extended-job-api')
|
||||
if stat then
|
||||
-- hilbish git
|
||||
moddocPath = './docs/'
|
||||
|
Loading…
x
Reference in New Issue
Block a user