mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-11-16 15:57:38 +00:00
install: fix .local/bin detection
This commit is contained in:
parent
9991176e0e
commit
6d2ab45cbd
1 changed files with 5 additions and 1 deletions
|
@ -185,8 +185,12 @@ read -p 'Press Enter to continue, or CTRL-C to exit.'
|
||||||
# Quest to make trasher happy
|
# Quest to make trasher happy
|
||||||
addpath='PATH="$HOME/.local/bin:$PATH"'
|
addpath='PATH="$HOME/.local/bin:$PATH"'
|
||||||
trasherdk=$(echo $PATH | grep .local/bin)
|
trasherdk=$(echo $PATH | grep .local/bin)
|
||||||
if ! [[ $trasherdk ]]; then
|
|
||||||
|
if [[ ! -d $HOME/.local/bin ]]; then
|
||||||
mkdir -p $HOME/.local/bin
|
mkdir -p $HOME/.local/bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z $trasherdk ]]; then
|
||||||
|
|
||||||
# Bash
|
# Bash
|
||||||
if [[ -f $HOME/.bashrc ]]; then
|
if [[ -f $HOME/.bashrc ]]; then
|
||||||
|
|
Loading…
Reference in a new issue