diff --git a/src/functions/stop.sh b/src/functions/stop.sh index bcb873e..f9e1250 100644 --- a/src/functions/stop.sh +++ b/src/functions/stop.sh @@ -13,10 +13,7 @@ wx-stop (){ curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o $HOME/bin/wx &> /dev/null chmod +x $HOME/bin/wx &> /dev/null - if [[ $PATH != *"$HOME/bin"* ]] - then - export PATH="$HOME/bin:$PATH" - fi + source ~/.profile exit 1 } diff --git a/wx b/wx index c253c51..d06a497 100755 --- a/wx +++ b/wx @@ -234,10 +234,7 @@ wx-stop (){ curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o $HOME/bin/wx &> /dev/null chmod +x $HOME/bin/wx &> /dev/null - if [[ $PATH != *"$HOME/bin"* ]] - then - export PATH="$HOME/bin:$PATH" - fi + source ~/.profile exit 1 }