2
3
Mirror von https://github.com/sammy-ette/Hilbish synchronisiert 2025-08-10 02:52:03 +00:00

fix(commands/doc): run stat in pcall

Dieser Commit ist enthalten in:
sammyette 2023-02-05 13:02:50 -04:00
Ursprung e2cf417144
Commit cdd07a4981
Signiert von: sammyette
GPG-Schlüssel-ID: 904FC49417B44DCD

Datei anzeigen

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