Skip to content

Commit

Permalink
Merge pull request #57 from fennifith/master
Browse files Browse the repository at this point in the history
fix broken if condition with modified xorg.conf
  • Loading branch information
hertg authored Jan 24, 2021
2 parents 748e4e7 + 5b685bd commit 49d07ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion egpu-switcher
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ function switch() {
fi
fi

if [ ${mode} = "egpu" ] && [ $(cat $xfile_egpu | grep -Ei "Driver" | cut -f 2 -d \") != "nvidia" ]; then
# when mode is 'egpu' and no 'nvidia' driver is used
if [ ${mode} = "egpu" ] && ! grep -Eiq 'Driver.*nvidia' $xfile_egpu; then

if [ -z ${hex_id+x} ]; then
is_egpu_connected
Expand Down

0 comments on commit 49d07ad

Please sign in to comment.