diff --git a/root/etc/rc.d/rc.psd b/root/etc/rc.d/rc.psd index 8a52617..2d8ada9 100644 --- a/root/etc/rc.d/rc.psd +++ b/root/etc/rc.d/rc.psd @@ -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