Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.6 compatibility patch #57

Open
tpoindex opened this issue Feb 5, 2019 · 0 comments
Open

V1.6 compatibility patch #57

tpoindex opened this issue Feb 5, 2019 · 0 comments

Comments

@tpoindex
Copy link

tpoindex commented Feb 5, 2019

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"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant