From 2690ce7a96aff4fdd1e37899761ab37ea93b397e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 16 Dec 2017 17:29:35 -0600 Subject: [PATCH] Fix use_example_configs to handle spaces in path --- buildroot/bin/use_example_configs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildroot/bin/use_example_configs b/buildroot/bin/use_example_configs index a383a8940..405f36b2a 100755 --- a/buildroot/bin/use_example_configs +++ b/buildroot/bin/use_example_configs @@ -2,8 +2,8 @@ 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 - cp "Marlin/src/config/examples/${1}/_Bootscreen.h" Marlin/src/config/ +if [ -f "Marlin/src/config/examples/$@/_Bootscreen.h" ]; then + cp "Marlin/src/config/examples/$@/_Bootscreen.h" Marlin/src/config/ fi