From 7e9f998694149cc87b3c599c2aa4bdcd0ac5a387 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 31 Mar 2017 23:15:31 +0100 Subject: [PATCH] return rather than exit --- src/freedombone-app-pelican | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/freedombone-app-pelican b/src/freedombone-app-pelican index 926ddde5..b4a67305 100755 --- a/src/freedombone-app-pelican +++ b/src/freedombone-app-pelican @@ -306,11 +306,10 @@ function pelican_change_theme { --title $"Select Blog Theme" \ --radiolist $'Choose:' \ 80 40 20 $themelist 2> $data - sel=$? case $sel in - 1) exit 1;; - 255) exit 1;; + 1) return;; + 255) return;; esac CHOSEN_THEME_INDEX=$(cat $data) echo "$CHOSEN_THEME_INDEX" > $PELICAN_BLOG_INSTALL_DIR/.blog-theme-index @@ -338,8 +337,8 @@ function configure_interactive_pelican { 5 $"Exit" off 2> $data sel=$? case $sel in - 1) exit 1;; - 255) exit 1;; + 1) return;; + 255) return;; esac case $(cat $data) in 1) pelican_new_blog;;