drop insto shell on failure using subshell
This commit is contained in:
parent
73357d03d4
commit
5e4f71befa
1 changed files with 3 additions and 3 deletions
6
unbox.sh
6
unbox.sh
|
@ -50,7 +50,7 @@ function unbox_outer_stage(){
|
||||||
|
|
||||||
|
|
||||||
if type -t first_stage > /dev/null; then
|
if type -t first_stage > /dev/null; then
|
||||||
first_stage || (echo first_stage failed; bash)
|
(first_stage) || (echo first_stage failed; bash)
|
||||||
else
|
else
|
||||||
echo first stage not found
|
echo first stage not found
|
||||||
fi
|
fi
|
||||||
|
@ -74,7 +74,7 @@ function unbox_outer_stage(){
|
||||||
umount target/root/unbox target/root/unbox_data
|
umount target/root/unbox target/root/unbox_data
|
||||||
|
|
||||||
if type -t post_install_stage > /dev/null; then
|
if type -t post_install_stage > /dev/null; then
|
||||||
post_install_stage || (echo post_install_stage failed; bash)
|
(post_install_stage) || (echo post_install_stage failed; bash)
|
||||||
else
|
else
|
||||||
echo no post_install_stage found
|
echo no post_install_stage found
|
||||||
fi
|
fi
|
||||||
|
@ -96,7 +96,7 @@ function unbox_inner_stage(){
|
||||||
echo chosen repository does not contain entry.sh file
|
echo chosen repository does not contain entry.sh file
|
||||||
fi
|
fi
|
||||||
if type -t second_stage > /dev/null; then
|
if type -t second_stage > /dev/null; then
|
||||||
second_stage || (echo second_stage failed; bash)
|
(second_stage) || (echo second_stage failed; bash)
|
||||||
else
|
else
|
||||||
echo second stage not found
|
echo second stage not found
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue