|
|
@ -21,7 +21,7 @@ scan_users() { |
|
|
|
group="$(getent passwd $user | cut -d: -f4)" |
|
|
|
home="$(getent passwd $user | cut -d: -f6)" |
|
|
|
shell="$(getent passwd $user | cut -d: -f7)" |
|
|
|
if [ "$group" != "0" -a "$home" -a "$home" != "/" -a "$(grep $shell /etc/shells)" ]; then |
|
|
|
if [ "$group" != "0" -a "$home" -a "$home" != "/" -a "$(fgrep -x "$shell" /etc/shells)" ]; then |
|
|
|
config="$(su - $user -c 'echo $XDG_CONFIG_HOME')" |
|
|
|
[ ! "$config" ] && config="$home/.config" |
|
|
|
if [ -f "$config/psd/psd.conf" ]; then |
|
|
|