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
1 changed files with 4 additions and 0 deletions

4
wd2
View File

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