_() { printf '%s\n' "$*"; }
. "$_EXEC/l10n.sh"
-which git && [ ! -d .git ] && {
+if which git >/dev/null && [ ! -d .git ]; then
git -C "$_DATA" init
mkdir -p "$_DATA/documents/" "$_DATA/export/"
printf 'export/
serverkey' >"$_DATA/.gitignore"
git -C "$_DATA" add documents/ .gitignore
git -C "$_DATA" commit -m 'initialisation of document repo'
-} >&2
+fi >&2
[ "$REQUEST_METHOD" = POST ] && case $(POST action) in
new_invoice)