Sfoglia il codice sorgente

Improve use_example_configs script

Scott Lahteine 6 anni fa
parent
commit
8653cedee4
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7
    1
      buildroot/bin/use_example_configs

+ 7
- 1
buildroot/bin/use_example_configs Vedi File

@@ -2,7 +2,13 @@
2 2
 
3 3
 restore_configs
4 4
 
5
-cp Marlin/src/config/examples/"$@"/Configuration* Marlin/
5
+if [ -f "Marlin/src/config/examples/$@/Configuration.h" ]; then
6
+  cp "Marlin/src/config/examples/$@/Configuration.h" Marlin/
7
+fi
8
+
9
+if [ -f "Marlin/src/config/examples/$@/Configuration_adv.h" ]; then
10
+  cp "Marlin/src/config/examples/$@/Configuration_adv.h" Marlin/
11
+fi
6 12
 
7 13
 if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then
8 14
   cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/

Loading…
Annulla
Salva