mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-11-16 15:57:38 +00:00
hide xfce err
This commit is contained in:
parent
acc3702c50
commit
e8f3a7d964
2 changed files with 11 additions and 5 deletions
|
@ -3,7 +3,7 @@ cd $SWAP_DATADIR/basicswap
|
||||||
|
|
||||||
# Download updated scripts
|
# Download updated scripts
|
||||||
echo "Updating basicswap-bash scripts" && sleep 1
|
echo "Updating basicswap-bash scripts" && sleep 1
|
||||||
git clone https://github.com/nahuhh/basicswap-bash
|
git clone https://github.com/nahuhh/basicswap-bash -b dev
|
||||||
cd basicswap-bash
|
cd basicswap-bash
|
||||||
|
|
||||||
# Move scripts
|
# Move scripts
|
||||||
|
|
14
install.sh
14
install.sh
|
@ -169,15 +169,21 @@ if ! [[ $trasherdk ]]; then
|
||||||
mkdir -p $HOME/.local/bin
|
mkdir -p $HOME/.local/bin
|
||||||
fi
|
fi
|
||||||
# Move scripts to .local/bin
|
# Move scripts to .local/bin
|
||||||
if [ -d $HOME/.local/bin/bsx ]; then
|
if [[ -d $HOME/.local/bin/bsx ]]; then
|
||||||
rm -r $HOME/.local/bin/bsx* $HOME/.local/bin/basicswap-bash
|
rm -r $HOME/.local/bin/bsx* $HOME/.local/bin/basicswap-bash
|
||||||
fi
|
fi
|
||||||
mv -f -t $HOME/.local/bin/ basicswap-bash bsx*
|
mv -f -t $HOME/.local/bin/ basicswap-bash bsx*
|
||||||
# Enable .profile detection on XFCE
|
# Enable .profile detection on XFCE
|
||||||
xfce_check=$(echo $XDG_CURRENT_DESKTOP | grep XFCE)
|
xfce_check=$(echo $XDG_CURRENT_DESKTOP | grep XFCE)
|
||||||
xsessionrc_check=$(cat ~/.xsessionrc | grep '. ~/.profile')
|
if [[ $xfce_chek ]]; then
|
||||||
if [[ $xfce_chek ]] && [[ -z $xsessionrc_check ]]; then
|
if [[ -f $HOME/.xsessionrc ]]; then
|
||||||
echo '. ~/.profile' | tee -a ~/.xsessionrc
|
xsessionrc_check=$(cat ~/.xsessionrc | grep '. ~/.profile')
|
||||||
|
if [[ -z $xsessionrc_check ]]; then
|
||||||
|
echo '. ~/.profile' | tee -a ~/.xsessionrc
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo '. ~/.profile' | tee -a ~/.xsessionrc
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Make venv and set variables for install
|
## Make venv and set variables for install
|
||||||
|
|
Loading…
Reference in a new issue