Skip to content

Commit

Permalink
Updated install script
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Feb 23, 2024
1 parent 4972061 commit 9cc6e40
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/install.sh
Expand Up @@ -15,13 +15,7 @@ then
abort "Bash is required to interpret this script."
fi

if [ "/usr/bin/zsh" == "$SHELL" ]; then
PROFILE_FILE="$HOME/.zshrc"
elif [ "/usr/bin/bash" == "$SHELL" ]; then
PROFILE_FILE="$HOME/.bashrc"
else
PROFILE_FILE="$HOME/.profile"
fi
PROFILE_FILE="$HOME/.profile"

# Check OS.
OS="$(uname)"
Expand Down Expand Up @@ -139,7 +133,7 @@ install_blade() {
echo "Linking Blade..."

# export to bash profile
echo "export PATH=\$PATH:\"$1/.blade\"" >> "$PROFILE_FILE"
sudo echo "export PATH=\$PATH:\"$1/.blade\"" >> "$PROFILE_FILE"

# make available in current session

Expand Down

0 comments on commit 9cc6e40

Please sign in to comment.