allow error for parsing
This commit is contained in:
parent
99f00a307c
commit
a6443868dd
1 changed files with 4 additions and 0 deletions
4
wd2
4
wd2
|
@ -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}} \
|
||||
|
|
Loading…
Reference in a new issue