2
2
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:
sammyette 2023-02-05 13:02:50 -04:00
parent e2cf417144
commit cdd07a4981
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -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/'