Skip to content

Commit 809fb38

Browse files
committed
[fix] : Fixed typo
1 parent 9523711 commit 809fb38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/lightdm/airootfs.any/root/customize_airootfs_lightdm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)