return rather than exit

This commit is contained in:
Bob Mottram 2017-03-31 23:15:31 +01:00
parent 91228ef25a
commit 7e9f998694
1 changed files with 4 additions and 5 deletions

View File

@ -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;;