diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-04-20 03:52:52 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-04-20 03:52:52 +0200 |
commit | b581b920bfea3b86cd38973e9f6e629e0a6fb60c (patch) | |
tree | 7c8e0e315b165e45e922c4cd4263bf5a44609029 /clerk | |
parent | 7cfa464d06a6745e48aae8d59e6fa49f660afcdc (diff) | |
download | perl-app-clerk-b581b920bfea3b86cd38973e9f6e629e0a6fb60c.tar.gz perl-app-clerk-b581b920bfea3b86cd38973e9f6e629e0a6fb60c.tar.xz |
catch return code 1 for --rss
Diffstat (limited to 'clerk')
-rwxr-xr-x | clerk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -684,6 +684,11 @@ crossfadePrompt () { # not support custom names for urls. format of podcast in file is "Name \ URL" loadRSS () { podcast=$(echo -e "< Return\n---\n$(cat $HOME/.config/clerk/podcasts | cut -d '\' -f1)" | dmenu_t -p "Choose Podcast > ") + val=$? + + if [[ $val -eq 1 ]]; then + exit + fi if [[ $podcast == "< Return" ]]; then dplayQueue else |