Browse Source

Fix use_example_configs to handle spaces in path

Scott Lahteine 6 years ago
parent
commit
2690ce7a96
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      buildroot/bin/use_example_configs

+ 3
- 3
buildroot/bin/use_example_configs View File

@@ -2,8 +2,8 @@
2 2
 
3 3
 restore_configs
4 4
 
5
-eval "cp Marlin/src/config/examples/${1}/Configuration* Marlin/"
5
+cp Marlin/src/config/examples/"$@"/Configuration* Marlin/
6 6
 
7
-if [ -f "Marlin/src/config/examples/${1}/_Bootscreen.h" ]; then
8
-  cp "Marlin/src/config/examples/${1}/_Bootscreen.h" Marlin/src/config/
7
+if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then
8
+  cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/src/config/
9 9
 fi

Loading…
Cancel
Save