install: fix .local/bin detection

This commit is contained in:
nahuhh 2024-10-17 16:57:40 +00:00
parent 9991176e0e
commit 6d2ab45cbd

View file

@ -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