config/graphic: remove duplicate entries in XORG_DRIVERS variable

This commit is contained in:
Lukas Rusak 2018-05-20 21:15:42 -07:00
parent 32a7930b9a
commit e23f0cb5f2
No known key found for this signature in database
GPG Key ID: 8C310C807E7393A3

View File

@ -100,4 +100,7 @@ get_graphicdrivers() {
# remove leading comma if present
[[ $GALLIUM_DRIVERS =~ ^, ]] && GALLIUM_DRIVERS="${GALLIUM_DRIVERS:1}"
[[ $DRI_DRIVERS =~ ^, ]] && DRI_DRIVERS="${DRI_DRIVERS:1}"
# remove duplicate entries
XORG_DRIVERS="$(echo $XORG_DRIVERS | xargs -n1 | sort -u | xargs)"
}