From 321b792f35ab6c5d675b4faec82f75bcf547ba19 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 15 Oct 2016 16:36:50 +0100 Subject: [PATCH] Allow reset on interactive configuration --- src/freedombone | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/freedombone b/src/freedombone index 62d8728c..b6207ad8 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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 ]]