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" \
|
--title $"Select Blog Theme" \
|
||||||
--radiolist $'Choose:' \
|
--radiolist $'Choose:' \
|
||||||
80 40 20 $themelist 2> $data
|
80 40 20 $themelist 2> $data
|
||||||
|
|
||||||
sel=$?
|
sel=$?
|
||||||
case $sel in
|
case $sel in
|
||||||
1) exit 1;;
|
1) return;;
|
||||||
255) exit 1;;
|
255) return;;
|
||||||
esac
|
esac
|
||||||
CHOSEN_THEME_INDEX=$(cat $data)
|
CHOSEN_THEME_INDEX=$(cat $data)
|
||||||
echo "$CHOSEN_THEME_INDEX" > $PELICAN_BLOG_INSTALL_DIR/.blog-theme-index
|
echo "$CHOSEN_THEME_INDEX" > $PELICAN_BLOG_INSTALL_DIR/.blog-theme-index
|
||||||
|
@ -338,8 +337,8 @@ function configure_interactive_pelican {
|
||||||
5 $"Exit" off 2> $data
|
5 $"Exit" off 2> $data
|
||||||
sel=$?
|
sel=$?
|
||||||
case $sel in
|
case $sel in
|
||||||
1) exit 1;;
|
1) return;;
|
||||||
255) exit 1;;
|
255) return;;
|
||||||
esac
|
esac
|
||||||
case $(cat $data) in
|
case $(cat $data) in
|
||||||
1) pelican_new_blog;;
|
1) pelican_new_blog;;
|
||||||
|
|
Loading…
Reference in New Issue