Skip to content

Commit

Permalink
init: simplify nvidia 32bit dir detection
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Jan 19, 2025
1 parent af39f24 commit 07c87ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -1859,12 +1859,11 @@ if [ "${nvidia}" -eq 1 ]; then
lib64_dir="/usr/lib/"
if [ -e "/usr/lib/x86_64-linux-gnu" ]; then
lib64_dir="/usr/lib/x86_64-linux-gnu/"
lib32_dir="/usr/lib/i386-linux-gnu/"
elif [ -e "/usr/lib64" ]; then
lib64_dir="/usr/lib64/"
fi
if [ -e "/usr/lib/i386-linux-gnu" ]; then
lib32_dir="/usr/lib/i386-linux-gnu/"
elif [ -e "/usr/lib32" ]; then
if [ -e "/usr/lib32" ]; then
lib32_dir="/usr/lib32/"
fi

Expand Down

0 comments on commit 07c87ba

Please sign in to comment.