diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-01-07 17:19:33 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-01-07 17:21:31 +0100 |
commit | f42cffe96201b1e5886e5069856a02eeb3bf5733 (patch) | |
tree | d25b6bcf356b08d11b5a0fa46866e62c183dce30 /script | |
parent | 9465d189f730a6a6ada3cb7bdc0660607b645fb6 (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-x | script/rofi-theme-selector | 5 |
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 |