diff options
| author | mo khan <mo.khan@gmail.com> | 2019-10-12 14:57:21 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2019-10-12 14:57:21 -0600 |
| commit | 2e2f6bcfa9c043007765e98f82baa4b461a7fe25 (patch) | |
| tree | 28a947a72b75c9e8416470b21fbfb2682c059ee6 /bin/no-password | |
| parent | d5beeffb6247a8b0e115d059491255600dd70440 (diff) | |
add tests for no-password script
Diffstat (limited to 'bin/no-password')
| -rwxr-xr-x | bin/no-password | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/no-password b/bin/no-password index 7ed2797..bd32709 100755 --- a/bin/no-password +++ b/bin/no-password @@ -1,3 +1,5 @@ #!/bin/bash -grep -E '^\w+::.*' /etc/passwd +FILE=${1:-'/etc/passwd'} + +grep -E '^\w+::.*' $FILE |
