mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 00:13:47 +03:00
add gents.sh, forgot to commit
This commit is contained in:
parent
d84c96eca5
commit
618e5c2aa3
1 changed files with 11 additions and 0 deletions
11
gents.sh
Executable file
11
gents.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# generate new typescript client, only install it when it is different, so we
|
||||
# don't trigger frontend builds needlessly.
|
||||
go run vendor/github.com/mjl-/sherpats/cmd/sherpats/main.go -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
|
Loading…
Reference in a new issue