Skip to content

Commit

Permalink
refactor: removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat committed May 25, 2023
1 parent a49e2b5 commit c7960ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions brain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ NC='\033[0m'
readonly BRAIN_DIR="$HOME/.brain"
readonly VERSION_FILE="$HOME/.brain/version"
readonly _BRAIN_BIN="/usr/local/bin/brain"
readonly NEURONS_GIT="https://raw.githubusercontent.com/neobrains/brain/main/neurons"
readonly RAW_URI="https://raw.githubusercontent.com/neobrains/brain/main"

valid_commands=("install" "uninstall" "update" "upgrade" "search" "list" "info")
Expand Down Expand Up @@ -191,7 +190,7 @@ if [[ $1 =~ (install|update|uninstall) ]]; then
exit 1
fi

script=$(curl -sL "$NEURONS_GIT/$2.sh")
script=$(curl -sL "$RAW_URI/neurons/$2.sh")

if [ "$script" == "404: Not Found" ]; then
echo -e "${RED}Error: Package '$2' not found${NC}"
Expand Down

0 comments on commit c7960ce

Please sign in to comment.