Fix use_example_configs to handle spaces in path
This commit is contained in:
parent
1de7c75590
commit
2690ce7a96
1 changed files with 3 additions and 3 deletions
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
restore_configs
|
restore_configs
|
||||||
|
|
||||||
eval "cp Marlin/src/config/examples/${1}/Configuration* Marlin/"
|
cp Marlin/src/config/examples/"$@"/Configuration* Marlin/
|
||||||
|
|
||||||
if [ -f "Marlin/src/config/examples/${1}/_Bootscreen.h" ]; then
|
if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then
|
||||||
cp "Marlin/src/config/examples/${1}/_Bootscreen.h" Marlin/src/config/
|
cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/src/config/
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue