nowsprinting/android-completion — pull request #1 by nowsprinting (2011-11-25 05:11:42+00:00)
Title: Change command for make device serial numbers. for MacOSX.

On the Mac OS X,
$ head -n -1
head: illegal line count -- -1

So the 'grep' command was changed to use.