Skip to content

feat: error message in not clear when existing shorebird installation is detected #31

@AbhijithKonnayil

Description

@AbhijithKonnayil

Description
When installing shorebird with
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
if existing shorebird installation is detected it shows the error,
Error: Existing Shorebird installation detected. Use --force to overwrite.
This error message gives only little context, atleast for beginners.
The proper command that works is
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash -s -- --force

Requirements

# Check if install_dir already exists
if [ -d "$(install_dir)" ]; then
  if [ "$FORCE" = true ]; then
    echo "Existing Shorebird installation detected. Overwriting..."
    rm -rf "$(install_dir)"
  else
    echo >&2 "Error: Existing Shorebird installation detected. Use --force to overwrite."
    exit 1
  fi
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions