Skip to content

Commit

Permalink
fix(update): don't update rocks that aren't in rocks.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored and vhyrro committed Apr 24, 2024
1 parent a45a617 commit c969b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rocks/operations/init.lua
Expand Up @@ -386,7 +386,7 @@ operations.update = function(on_complete)
local ct = 0
for name, rock in pairs(outdated_rocks) do
local user_rock = user_rocks.plugins[rock.name] or user_rocks.rocks[rock.name]
if user_rock and user_rock.pin then
if not user_rock or user_rock.pin then
goto skip_update
end
nio.scheduler()
Expand Down

0 comments on commit c969b61

Please sign in to comment.