masterbranch/Jolly-Roger — comment on commit bfeb78fbe298a2ef4efb65e36fae13728aea9399
File: git/masterbranch.sh line 21
By unleashed:

running users is crude and plain wrong. just having a few users logged in on your machine will be enough to do the wrong thing. either get the user from the environment or (better) parse the output of the id command, which is standard. also, you might want to get the gecos of this user for a more human-friendly name, but that builds up complexity because of portability corner cases.