jlhonora / lsusb

lsusb command for Mac OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

system_profiler command not found

hotwilson opened this issue · comments

After I install using brew and run lsusb I'm seeing:
/usr/local/bin/lsusb: line 7: system_profiler: command not found
The system_profiler command by itself does not work. But this does work:
/usr/sbin/system_profiler

My machine:

sw_vers ::
ProductName: Mac OS X
ProductVersion: 10.13.3
BuildVersion: 17D102

uname -a ::
Darwin Wilsons-MacBook-Pro.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

"Command not found" is normally an error message related to an incorrect PATH environment variable. This is reinforced by the fact that if you spell out the entire path to the command, it works.

I suppose you could change line 7 to spell out the path.