allow error for parsing

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-13 15:12:06 +03:00
parent 99f00a307c
commit a6443868dd
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

4
wd2
View file

@ -1,5 +1,7 @@
#! /usr/bin/env bash #! /usr/bin/env bash
set -e
d2_args=( ) d2_args=( )
d2_input_file= d2_input_file=
@ -56,9 +58,11 @@ if [ -z "$d2_input_file" ]; then
exit 1 exit 1
fi fi
set +e
d2_layout=$(get_attr_value "layout") d2_layout=$(get_attr_value "layout")
d2_theme=$(get_attr_value "theme") d2_theme=$(get_attr_value "theme")
d2_pad=$(get_attr_value "pad") d2_pad=$(get_attr_value "pad")
set -e
d2 "${d2_args[@]}" \ d2 "${d2_args[@]}" \
${d2_layout:+--layout ${d2_layout}} \ ${d2_layout:+--layout ${d2_layout}} \