[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
1 changed files with 1 additions and 1 deletions

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})