Skip to content

Commit

Permalink
Fix user-install "No such file or directory"
Browse files Browse the repository at this point in the history
Fix issue in user-install where "No such file or directory" prevented installation
  • Loading branch information
ewagner12 authored Mar 2, 2024
1 parent 72de788 commit 601f913
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;

Expand Down

0 comments on commit 601f913

Please sign in to comment.