Skip to content

Commit ba3dce9

Browse files
committed
fix: return value spelling error
Incorrect return value causes rendering engine error pms: TASK-368711
1 parent 78787ca commit ba3dce9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/Xsession.d/00deepin-dde-env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ get_graphics_drivers() {
3535
# 检查是否等于目标驱动程序
3636
if [ "$driver_name" = "$target_to_match" ]; then
3737
echo "Match found: $driver_name"
38-
return 1
38+
return 0
3939
fi
4040
done
4141
done
4242
done
43-
return 0 # 默认返回0表示匹配失败
43+
return 1 # 默认返回1表示匹配失败
4444
}
4545

4646
if [ "$1" = "/usr/bin/dde-session" ]; then

0 commit comments

Comments
 (0)