Browse Source

Improve use_example_configs script

Scott Lahteine 6 years ago
parent
commit
8653cedee4
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      buildroot/bin/use_example_configs

+ 7
- 1
buildroot/bin/use_example_configs View File

2
 
2
 
3
 restore_configs
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
 if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then
13
 if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then
8
   cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/
14
   cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/

Loading…
Cancel
Save