From 82445ba363a07dc56c63115ed7d77ecd440be563 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sun, 23 Sep 2018 15:59:16 +0200 Subject: [PATCH] Fix rc.psd --- root/etc/rc.d/rc.psd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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