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