From 72a047d54962d4be98a742fe06b3c779267c5b72 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Sat, 16 Dec 2017 17:32:32 -0600
Subject: [PATCH] Fix use_example_configs handling spaces in path

---
 buildroot/bin/use_example_configs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/buildroot/bin/use_example_configs b/buildroot/bin/use_example_configs
index 9f55c52e1f..21031ee121 100755
--- a/buildroot/bin/use_example_configs
+++ b/buildroot/bin/use_example_configs
@@ -1,7 +1,9 @@
 #!/usr/bin/env bash
 
-eval "cp Marlin/example_configurations/${1}/Configuration* Marlin/"
+restore_configs
 
-if [ -f "Marlin/example_configurations/${1}/_Bootscreen.h" ]; then
-  cp "Marlin/example_configurations/${1}/_Bootscreen.h" Marlin/
+cp Marlin/example_configurations/"$@"/Configuration* Marlin/
+
+if [ -f "Marlin/example_configurations/$@/_Bootscreen.h" ]; then
+  cp "Marlin/example_configurations/$@/_Bootscreen.h" Marlin/
 fi