Skip to content

Commit

Permalink
fix: properly detect glab executable
Browse files Browse the repository at this point in the history
  • Loading branch information
topaxi committed Nov 21, 2024
1 parent f81b89a commit 258b3ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pipeline/providers/gitlab/graphql/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function M.check()

health.start('Gitlab GraphQL provider')

if vim.fn.executable('glab') then
if vim.fn.executable('glab') == 1 then
health.ok('Found glab cli')
else
health.error('glab cli not found')
Expand Down
4 changes: 4 additions & 0 deletions lua/pipeline/providers/gitlab/graphql/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ function GitlabGraphQLProvider.detect()
return false
end

if vim.fn.executable('glab') == 0 then
return false
end

local config = require('pipeline.config')
local server, repo = git().get_current_repository()

Expand Down

0 comments on commit 258b3ab

Please sign in to comment.