From b93b40f09264a6ebd9de04519e3e3e6719e6c6c3 Mon Sep 17 00:00:00 2001 From: Lukas Rusak Date: Sun, 20 May 2018 20:10:27 -0700 Subject: [PATCH] config/graphic: remove leading comma in variables --- config/graphic | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/graphic b/config/graphic index adbb3af3a7..4d7b999aba 100644 --- a/config/graphic +++ b/config/graphic @@ -98,5 +98,9 @@ get_graphicdrivers() { VDPAU_SUPPORT="no" fi + # remove leading comma if present + [[ $GALLIUM_DRIVERS =~ ^, ]] && GALLIUM_DRIVERS="${GALLIUM_DRIVERS:1}" + [[ $DRI_DRIVERS =~ ^, ]] && DRI_DRIVERS="${DRI_DRIVERS:1}" + done }