Allow reset on interactive configuration

This commit is contained in:
Bob Mottram 2016-10-15 16:36:50 +01:00
parent d20c032518
commit 321b792f35
1 changed files with 9 additions and 1 deletions

View File

@ -74,7 +74,15 @@ if [ ! $COMPLETION_FILE ]; then
COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
fi
if [[ $command_options == "menuconfig" ]]; then
if [[ $command_options == *"menuconfig"* ]]; then
if [[ $command_options == *"--reset"* ]]; then
if [ -f $CONFIGURATION_FILE ]; then
rm $CONFIGURATION_FILE
fi
if [ -f $COMPLETION_FILE ]; then
rm $COMPLETION_FILE
fi
fi
interactive_configuration
else
while [[ $# > 1 ]]