From 5f356e5616756a65781f0c1129d3aa7b7f8b929f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 23 May 2024 04:45:12 +0300 Subject: [PATCH] Code Update --- src/functions/stop.sh | 5 +++++ wx | 5 +++++ 2 files changed, 10 insertions(+) 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 }