Skip to content

Install script adds duplicate entries to shell configuration files #35

@zanozbot

Description

@zanozbot

Description

The current install.sh script blindly appends configuration to shell config files (.bashrc, .zshrc, config.fish) without checking if the configuration already exists. This causes duplicate PATH exports and environment variables every time the install script is run.

Steps to reproduce

  1. Run the install script:
curl -fsSL https://github.com/owenizedd/bum/raw/main/install.sh | bash
  1. Run the install script again.
  2. Check your shell config file (e.g., cat ~/.bashrc).
  3. Observe duplicate bum configuration entries.

Expected behaviour

The install script should only add the configuration once.

Environment

OS: Multiple (affects Linux, macOS)
Shell: bash, zsh, fish
bum version: v0.6.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions