summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/gather-files4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gather-files b/scripts/gather-files
index 89a0524..583a40f 100755
--- a/scripts/gather-files
+++ b/scripts/gather-files
@@ -9,8 +9,8 @@ cd "${0%/*}/.."
cmd='
uname -n
- cut -d: -f1,6 \
- </etc/passwd \
+ getent passwd \
+ | cut -d: -f1,6 \
| tr ":" " " \
| while read -r user home; do \
[ -d "${home}/.ssh" ] \