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:
parent
4e4e3917aa
commit
4375f9f075
1 changed files with 1 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue