mirror of https://github.com/davatorium/rofi.git
[ThemeSelector] Get only the first mention of user in the file.
This commit is contained in:
parent
4e4e3917aa
commit
4375f9f075
|
@ -81,7 +81,7 @@ function find_themes()
|
||||||
themes+=(${file})
|
themes+=(${file})
|
||||||
FN=$(basename ${file})
|
FN=$(basename ${file})
|
||||||
NAME=${FN%.*}
|
NAME=${FN%.*}
|
||||||
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} )
|
USER=$(${SED} -n 's/^.*User: \(.*\)/\1/p' ${file} | head -n 1 )
|
||||||
if [ -z "${USER}" ]
|
if [ -z "${USER}" ]
|
||||||
then
|
then
|
||||||
theme_names+=(${NAME})
|
theme_names+=(${NAME})
|
||||||
|
|
Loading…
Reference in New Issue