Skip to content

Errors in uninstall hook #46

@halostatue

Description

@halostatue

Describe the bug

Errors are printed while running the fisher uninstall hook.

To Reproduce

Steps to reproduce the behavior:

$ fisher remove gazorby/fifc
fisher remove version 4.4.4
set: --erase: option requires an argument

~/.config/fish/conf.d/fifc.fish (line 68):
        set -e $_fifc_ordered_comp[$i]
        ^
in function '_fifc_uninstall'
	called on line 1 of file ~/.config/fish/functions/fisher.fish
in event handler: handler for generic event “fifc_uninstall”
	called on line 135 of file ~/.config/fish/functions/fisher.fish

(Type 'help set' for related documentation)
~/.config/fish/conf.d/fifc.fish (line 68): array indices start at 1, not 0.
        set -e $_fifc_ordered_comp[$i]
                                    ^
in function '_fifc_uninstall'
	called on line 1 of file ~/.config/fish/functions/fisher.fish
in event handler: handler for generic event “fifc_uninstall”
	called on line 135 of file ~/.config/fish/functions/fisher.fish

System (please complete the following information):

  • fish 3.7.1
  • Distribution macOS (but this should happen anywhere)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions