#!/bin/bash
if [ "$(uname)" == "Darwin" ]; then
  brew install the_silver_searcher
elif [[ "$(lsb_release -i)" == *"Ubuntu"* ]]; then
  sudo apt-get install -y the_silver_searcher
fi

#!/bin/bash
if [ "$(uname)" == "Darwin" ]; then
  brew install the_silver_searcher
elif [[ "$(lsb_release -i)" == *"Ubuntu"* ]]; then
  sudo apt-get install -y silversearcher-ag
fi

Use correct Ubuntu package name for ag/silversearcher
Use correct Ubuntu package name for ag/silversearcher
