|
@@ -2,18 +2,14 @@
|
2
|
2
|
|
3
|
3
|
restore_configs
|
4
|
4
|
|
5
|
|
-if [ -f "config/examples/$@/Configuration.h" ]; then
|
6
|
|
- cp "config/examples/$@/Configuration.h" Marlin/
|
7
|
|
-fi
|
|
5
|
+EXAMPLES="https://raw.githubusercontent.com/MarlinFirmware/Configurations/master/config/examples"
|
8
|
6
|
|
9
|
|
-if [ -f "config/examples/$@/Configuration_adv.h" ]; then
|
10
|
|
- cp "config/examples/$@/Configuration_adv.h" Marlin/
|
11
|
|
-fi
|
|
7
|
+cd Marlin
|
12
|
8
|
|
13
|
|
-if [ -f "config/examples/$@/_Bootscreen.h" ]; then
|
14
|
|
- cp "config/examples/$@/_Bootscreen.h" Marlin/
|
15
|
|
-fi
|
|
9
|
+wget -q "$EXAMPLES/$@/Configuration.h" -O wgot && mv wgot Configuration.h
|
|
10
|
+wget -q "$EXAMPLES/$@/Configuration_adv.h" -O wgot && mv wgot Configuration_adv.h
|
|
11
|
+wget -q "$EXAMPLES/$@/_Bootscreen.h" -O wgot && mv wgot _Bootscreen.h
|
|
12
|
+wget -q "$EXAMPLES/$@/_Statusscreen.h" -O wgot && mv wgot _Statusscreen.h
|
|
13
|
+rm -f wgot
|
16
|
14
|
|
17
|
|
-if [ -f "config/examples/$@/_Statusscreen.h" ]; then
|
18
|
|
- cp "config/examples/$@/_Statusscreen.h" Marlin/
|
19
|
|
-fi
|
|
15
|
+cd - >/dev/null
|