diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-09-05 17:39:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-09-05 17:39:08 +0200 |
commit | 4dd64d7b2d202fe65ef7f17b89e22449325494b8 (patch) | |
tree | ff6e215e5adac106204b11cedb9aaf7356e1fe85 | |
parent | b74120596dc1748db6b0af789a4e653256d976e4 (diff) | |
download | bin-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-x | slic3r | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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[@]}" "$@" |