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:
Ursprung
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/'
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren