summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-01-07 17:19:33 +0100
committerDave Davenport <qball@gmpclient.org>2019-01-07 17:21:31 +0100
commitf42cffe96201b1e5886e5069856a02eeb3bf5733 (patch)
treed25b6bcf356b08d11b5a0fa46866e62c183dce30 /script
parent9465d189f730a6a6ada3cb7bdc0660607b645fb6 (diff)
Return EX_DATAERR when fails to parse theme.
This way a script can check if there was an error, otherwise you can wind up in a loop.
Diffstat (limited to 'script')
-rwxr-xr-xscript/rofi-theme-selector5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
index eec7b0a8..f49e8d59 100755
--- a/script/rofi-theme-selector
+++ b/script/rofi-theme-selector
@@ -149,7 +149,10 @@ Current theme: <b>${CUR}</b>"""
if [ ${RTR} = 10 ]
then
return 0;
- elif [ ${RTR} = 1 ]
+ elif [ ${RTR} = 1 ]
+ then
+ return 1;
+ elif [ ${RTR} = 65 ]
then
return 1;
fi