Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Jan 26, 2021
2 parents a078ae1 + c561cd0 commit 014249e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ _add_path() {
echo "[ OK ] $DIR/ is already in PATH."
else
# Nexus Tools directory needs to be added to $PATH
if [[ $SHELL == *"bash"* ]]; then
echo 'export PATH=$PATH:'$DIR >> $HOME/.bashrc
source "$HOME/.bashrc"
echo "[ OK ] Bash shell detected, added $DIR/ to $HOME/.bashrc."
elif [[ $SHELL == *"zsh"* ]]; then
if [[ "$SHELL" =~ "zsh" ]]; then
echo 'export PATH=$PATH:'$DIR >> $HOME/.zshrc
source "$HOME/.zshrc"
echo "[ OK ] Z Shell detected, added $DIR/ to $HOME/.zshrc."
elif [[ "$SHELL" =~ "bash" ]]; then
echo 'export PATH=$PATH:'$DIR >> $HOME/.bashrc
source "$HOME/.bashrc"
echo "[ OK ] Bash shell detected, added $DIR/ to $HOME/.bashrc."
else
echo "[WARN] Shell could not be detected, you will need to manually add $DIR to your PATH."
fi
Expand Down Expand Up @@ -103,7 +103,9 @@ _analytics() {

# Function for opening completion webpage
_open_webpage() {
if [ "$OS" = "Darwin" ]; then
if [ -d "/mnt/c/Windows" ]; then
/mnt/c/Windows/explorer.exe "https://corbin.io/nexus-tools-exit.html" &>/dev/null &
elif [ "$OS" = "Darwin" ]; then
open "https://corbin.io/nexus-tools-exit.html" &>/dev/null &
else
xdg-open "https://corbin.io/nexus-tools-exit.html" &>/dev/null &
Expand Down

0 comments on commit 014249e

Please sign in to comment.