Check that interactive configuration suceeded

This commit is contained in:
Bob Mottram 2016-10-15 21:30:25 +01:00
parent 983cef44fa
commit 393022a97e
2 changed files with 16 additions and 0 deletions

View File

@ -83,7 +83,20 @@ if [[ $command_options == "menuconfig" ]]; then
rm $COMPLETION_FILE
fi
fi
# clear the interactive file which indicates configuration success
interactive_file=$HOME/.${PROJECT_NAME}-interactive
if [ -f $interactive_file ]; then
rm $interactive_file
fi
interactive_configuration
# check that the interactive file was created
if [ ! -f $interactive_file ]; then
exit 6393562
fi
rm $interactive_file
else
while [[ $# > 1 ]]
do

View File

@ -1362,6 +1362,9 @@ function interactive_config {
if [ -f temp.cfg ]; then
shred -zu temp.cfg
fi
# This file indicates that the configuration happened successfully
touch $HOME/.${PROJECT_NAME}-interactive
}
function show_result {