mirror of
https://github.com/hanzoai/mail.git
synced 2026-09-23 23:53:02 +00:00
12 lines
316 B
Bash
Executable File
12 lines
316 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
# generate new typescript client, only install it when it is different, so we
|
|
# don't trigger frontend builds needlessly.
|
|
go tool sherpats -bytes-to-string -slices-nullable -maps-nullable -nullable-optional -namespace api api <$1 >$2.tmp
|
|
if cmp -s $2 $2.tmp; then
|
|
rm $2.tmp
|
|
else
|
|
mv $2.tmp $2
|
|
fi
|