Check that interactive configuration suceeded
This commit is contained in:
parent
983cef44fa
commit
393022a97e
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue