File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # vim:ts=4:sts=4:sw=4:et
3
+ #
4
+ # Author: Hari Sekhon
5
+ # Date: 2016-11-20 15:35:37 +0000 (Sun, 20 Nov 2016)
6
+ #
7
+ # https://github.com/harisekhon/pytools
8
+ #
9
+ # License: see accompanying Hari Sekhon LICENSE file
10
+ #
11
+ # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12
+ #
13
+ # https://www.linkedin.com/in/harisekhon
14
+ #
15
+
16
+ set -euo pipefail
17
+ [ -n " ${DEBUG:- } " ] && set -x
18
+ srcdir=" $( cd " $( dirname " $0 " ) " && pwd) "
19
+
20
+ cd " $srcdir /.."
21
+
22
+ . ./bash-tools/utils.sh
23
+
24
+ if [ ` uname -s` = Darwin ]; then
25
+ section " Getent (Mac)"
26
+ ./getent.py passwd
27
+ hr
28
+ ./getent.py passwd $USER
29
+ hr
30
+ ./getent.py group
31
+ hr
32
+ ./getent.py group $( id -gn)
33
+ hr
34
+ fi
You can’t perform that action at this time.
0 commit comments