* bin/whoami: print /etc/passwd info on --detail

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-06 20:36:41 -05:00
commit a528890cb5

View file

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
whoami grep "^$USER:" /etc/passwd
exit 0 exit 0
fi fi