Browse Source

Allow reset on interactive configuration

Bob Mottram 8 years ago
parent
commit
321b792f35
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/freedombone

+ 9
- 1
src/freedombone View File

74
     COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
74
     COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
75
 fi
75
 fi
76
 
76
 
77
-if [[ $command_options == "menuconfig" ]]; then
77
+if [[ $command_options == *"menuconfig"* ]]; then
78
+    if [[ $command_options == *"--reset"* ]]; then
79
+        if [ -f $CONFIGURATION_FILE ]; then
80
+            rm $CONFIGURATION_FILE
81
+        fi
82
+        if [ -f $COMPLETION_FILE ]; then
83
+            rm $COMPLETION_FILE
84
+        fi
85
+    fi
78
     interactive_configuration
86
     interactive_configuration
79
 else
87
 else
80
     while [[ $# > 1 ]]
88
     while [[ $# > 1 ]]