1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[ThemeSelector] Get only the first mention of user in the file.

This commit is contained in:
Dave Davenport 2017-10-14 21:34:49 +02:00
parent 4e4e3917aa
commit 4375f9f075

View file

@ -81,7 +81,7 @@ function find_themes()
themes+=(${file})
FN=$(basename ${file})
NAME=${FN%.*}
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} )
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} | head -n 1 )
if [ -z "${USER}" ]
then
theme_names+=(${NAME})