Selaa lähdekoodia

Allow reset on interactive configuration

Bob Mottram 8 vuotta sitten
vanhempi
commit
321b792f35
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 9
    1
      src/freedombone

+ 9
- 1
src/freedombone Näytä tiedosto

@@ -74,7 +74,15 @@ if [ ! $COMPLETION_FILE ]; then
74 74
     COMPLETION_FILE=$HOME/${PROJECT_NAME}-completed.txt
75 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 86
     interactive_configuration
79 87
 else
80 88
     while [[ $# > 1 ]]