Skip to content

Commit

Permalink
Fix use_example_configs handling spaces in path
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 16, 2017
1 parent e8d3ea8 commit 72a047d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 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

0 comments on commit 72a047d

Please sign in to comment.