-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
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"`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels