File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/lightdm/airootfs.any/root Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ if cat "/etc/lightdm/lightdm.conf.d/02-autologin-session.conf" | grep "%SESSION%
2626 session_list+=(" ${session} " )
2727 done < <( find " /usr/share/xsessions" -type f -print0 -name " *.desktop" | xargs -0 -I{} bash -c ' basename {} | sed "s|.desktop||g"' )
2828
29- if (( "${# session_list[@]} " = 1 )) ; then
29+ if (( "${# session_list[@]} " == 1 )) ; then
3030 session=" ${session_list[*]} "
3131 sed -i " s|%SESSION%|${session} |g" " /etc/lightdm/lightdm.conf.d/02-autologin-session.conf"
32- elif (( "${# session_list[@]} " = 0 )) ; then
32+ elif (( "${# session_list[@]} " == 0 )) ; then
3333 echo " Warining: Auto login session was not found"
3434 else
3535 remove " /etc/lightdm/lightdm.conf.d/02-autologin-session.conf"
You can’t perform that action at this time.
0 commit comments