summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-09-05 17:39:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-09-05 17:39:08 +0200
commit4dd64d7b2d202fe65ef7f17b89e22449325494b8 (patch)
treeff6e215e5adac106204b11cedb9aaf7356e1fe85
parentb74120596dc1748db6b0af789a4e653256d976e4 (diff)
downloadbin-4dd64d7b2d202fe65ef7f17b89e22449325494b8.tar.gz
bin-4dd64d7b2d202fe65ef7f17b89e22449325494b8.tar.xz
slic3r: Work around strange config parsing bug
Looks like passing --load multiple times lets Slic3r crash. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xslic3r9
1 files changed, 8 insertions, 1 deletions
diff --git a/slic3r b/slic3r
index f3e1753..a8ddc3d 100755
--- a/slic3r
+++ b/slic3r
@@ -1,7 +1,14 @@
#!/bin/bash
+merged="$HOME/.Slic3r/config.ini.merged"
+
+truncate -s 0 "$merged"
+
for config in "$HOME"/.Slic3r/*/config.ini; do
- opts+=(--load "$config")
+ #opts+=(--load "$config")
+ cat "$config" >> "$merged"
done
+opts+=(--load "$merged")
+
perl "$HOME"/git/Slic3r/slic3r.pl "${opts[@]}" "$@"