From 6d2ab45cbd4ca91d5a9109dfb26b2e5f10214772 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:57:40 +0000 Subject: [PATCH] install: fix .local/bin detection --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 3a4705a..2231023 100755 --- a/install.sh +++ b/install.sh @@ -185,8 +185,12 @@ read -p 'Press Enter to continue, or CTRL-C to exit.' # Quest to make trasher happy addpath='PATH="$HOME/.local/bin:$PATH"' trasherdk=$(echo $PATH | grep .local/bin) -if ! [[ $trasherdk ]]; then + +if [[ ! -d $HOME/.local/bin ]]; then mkdir -p $HOME/.local/bin +fi + +if [[ -z $trasherdk ]]; then # Bash if [[ -f $HOME/.bashrc ]]; then