瀏覽代碼

Fix use_example_configs to handle spaces in path

Scott Lahteine 6 年之前
父節點
當前提交
2690ce7a96
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      buildroot/bin/use_example_configs

+ 3
- 3
buildroot/bin/use_example_configs 查看文件

@@ -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…
取消
儲存