summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-10-14 21:34:49 +0200
committerDave Davenport <qball@gmpclient.org>2017-10-14 21:34:49 +0200
commit4375f9f075277efb8a08aaf87b7e66b1434dcaa2 (patch)
treebd9765e5c631db5512d0f36cc2b206ce15487401 /script
parent4e4e3917aa1b6b01f1d73e6b872a845c0708a938 (diff)
[ThemeSelector] Get only the first mention of user in the file.
Diffstat (limited to 'script')
-rwxr-xr-xscript/rofi-theme-selector2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
index bd1201f9..8973ec2c 100755
--- a/script/rofi-theme-selector
+++ b/script/rofi-theme-selector
@@ -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})