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
|
rm $COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
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
|
interactive_configuration
|
||||||
|
|
||||||
|
# check that the interactive file was created
|
||||||
|
if [ ! -f $interactive_file ]; then
|
||||||
|
exit 6393562
|
||||||
|
fi
|
||||||
|
rm $interactive_file
|
||||||
else
|
else
|
||||||
while [[ $# > 1 ]]
|
while [[ $# > 1 ]]
|
||||||
do
|
do
|
||||||
|
|
|
@ -1362,6 +1362,9 @@ function interactive_config {
|
||||||
if [ -f temp.cfg ]; then
|
if [ -f temp.cfg ]; then
|
||||||
shred -zu temp.cfg
|
shred -zu temp.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# This file indicates that the configuration happened successfully
|
||||||
|
touch $HOME/.${PROJECT_NAME}-interactive
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_result {
|
function show_result {
|
||||||
|
|
Loading…
Reference in New Issue