From 601f9135f28b5bae699f8780393562cc4afb2a41 Mon Sep 17 00:00:00 2001 From: ewagner12 <50758619+ewagner12@users.noreply.github.com> Date: Sat, 2 Mar 2024 15:43:38 -0500 Subject: [PATCH] Fix user-install "No such file or directory" Fix issue in user-install where "No such file or directory" prevented installation --- install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 1d03b42..6d5c8f7 100755 --- a/install.sh +++ b/install.sh @@ -43,8 +43,12 @@ case $1 in mkdir -p "$HD"/bin cp all-ways-egpu "$HD"/bin chmod +x "$HD"/bin/all-ways-egpu - cp all-ways-egpu.desktop "$HD"/.local/share/applications - if ! cat "$HD"/.bashrc | grep -q PATH='.*$HOME/bin'; then echo 'export PATH="$HOME/bin:$PATH"' >> "$HD"/.bashrc; fi + if [ -e "$HD"/.local/share/applications ]; then + cp all-ways-egpu.desktop "$HD"/.local/share/applications + fi + if [ -e "$HD"/.bashrc ]; then + if ! cat "$HD"/.bashrc | grep -q PATH='.*$HOME/bin'; then echo 'export PATH="$HOME/bin:$PATH"' >> "$HD"/.bashrc; fi + fi done ;;