return rather than exit
This commit is contained in:
parent
91228ef25a
commit
7e9f998694
|
@ -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;;
|
||||
|
|
Loading…
Reference in New Issue