diff --git a/src/functions/stop.sh b/src/functions/stop.sh index 0435f76..bcb873e 100644 --- a/src/functions/stop.sh +++ b/src/functions/stop.sh @@ -13,5 +13,10 @@ 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 + exit 1 } diff --git a/wx b/wx index 2aeb8ce..c253c51 100755 --- a/wx +++ b/wx @@ -234,6 +234,11 @@ 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 + exit 1 }