Skip to content

Commit

Permalink
fix pkgx remove
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrEEpy committed Oct 14, 2024
1 parent 6525d82 commit 5812e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pakku/pakku.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (p *Pakku) removePackageFromConfig(manager, pkg string) error {
return fmt.Errorf("package %s has not been added for %s", pkg, manager)
}

idx := slices.Index(p.config.Brew.Packages, pkg)
idx := slices.Index(p.config.Pkgx.Packages, pkg)

p.config.Pkgx.Packages = slices.Delete(p.config.Pkgx.Packages, idx, idx+1)
default:
Expand Down

0 comments on commit 5812e03

Please sign in to comment.