Skip to content

Commit 014249e

Browse files
Merge branch 'dev'
2 parents a078ae1 + c561cd0 commit 014249e

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

install.sh

+8-6
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ _add_path() {
6161
echo "[ OK ] $DIR/ is already in PATH."
6262
else
6363
# Nexus Tools directory needs to be added to $PATH
64-
if [[ $SHELL == *"bash"* ]]; then
65-
echo 'export PATH=$PATH:'$DIR >> $HOME/.bashrc
66-
source "$HOME/.bashrc"
67-
echo "[ OK ] Bash shell detected, added $DIR/ to $HOME/.bashrc."
68-
elif [[ $SHELL == *"zsh"* ]]; then
64+
if [[ "$SHELL" =~ "zsh" ]]; then
6965
echo 'export PATH=$PATH:'$DIR >> $HOME/.zshrc
7066
source "$HOME/.zshrc"
7167
echo "[ OK ] Z Shell detected, added $DIR/ to $HOME/.zshrc."
68+
elif [[ "$SHELL" =~ "bash" ]]; then
69+
echo 'export PATH=$PATH:'$DIR >> $HOME/.bashrc
70+
source "$HOME/.bashrc"
71+
echo "[ OK ] Bash shell detected, added $DIR/ to $HOME/.bashrc."
7272
else
7373
echo "[WARN] Shell could not be detected, you will need to manually add $DIR to your PATH."
7474
fi
@@ -103,7 +103,9 @@ _analytics() {
103103

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

0 commit comments

Comments
 (0)