learex-zz / macOS-eGPU

Make your Mac compatible with NVIDIA and AMD eGPUs. (macOS High Sierra)
Other
691 stars 53 forks source link

V1.6 compatibility patch #57

Open tpoindex opened 5 years ago

tpoindex commented 5 years ago

I have a few small script changes to share. My machine is on a corporate network that filters pings, so I've added a second way to check network connectivity. Also, I use the Homebrew's version of 'find' that I place ahead in my PATH, and that version complains of the ordering for -maxdepth. Putting the -maxdepth argument before -iname works for both GNU find and BSD find.

945c945
<     appListPathsTemp="$(find /Applications -iname *.app -maxdepth 3)"
---
>     appListPathsTemp="$(find /Applications -maxdepth 3 -iname *.app)"
959c959
<     /sbin/ping 1.1.1.1 -c 1 -t 3 &> /dev/null
---
>     /sbin/ping 1.1.1.1 -c 1 -t 3 &> /dev/null || curl -s "$gitPath""/Data/checksum.txt"  >/dev/null
1042c1042
<         libExtListNVDATemp=`find /Library/Extensions -iname "*NVDA*Web*" -maxdepth 1`
---
>         libExtListNVDATemp=`find /Library/Extensions -maxdepth 1 -iname "*NVDA*Web*"`
1051c1051
<         libExtListGeForceTemp=`find /Library/Extensions -iname "*GeForce*Web*" -maxdepth 1`
---
>         libExtListGeForceTemp=`find /Library/Extensions -maxdepth 1 -iname "*GeForce*Web*"`
1060c1060
<         sysLibExtListNVDATemp=`find /System/Library/Extensions -iname "*NVDA*Web*" -maxdepth 1`
---
>         sysLibExtListNVDATemp=`find /System/Library/Extensions -maxdepth 1 -iname "*NVDA*Web*"`
1069c1069
<         sysLibExtListGeForceTemp=`find /System/Library/Extensions -iname "*GeForce*Web*" -maxdepth 1`
---
>         sysLibExtListGeForceTemp=`find /System/Library/Extensions -maxdepth 1 -iname "*GeForce*Web*"`
1397c1397
<         versionPathTemp=`find "$cudaDeveloperDir" -iname "version.txt" -maxdepth 2`
---
>         versionPathTemp=`find "$cudaDeveloperDir" -maxdepth 2 -iname "version.txt"`