mirror of
https://github.com/immich-app/immich.git
synced 2026-07-14 09:00:59 +00:00
chore: exit open-api script on errors (#27815)
This commit is contained in:
parent
603fc7401f
commit
8454cb2631
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
OPENAPI_GENERATOR_VERSION=v7.12.0
|
OPENAPI_GENERATOR_VERSION=v7.12.0
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
# usage: ./bin/generate-open-api.sh
|
# usage: ./bin/generate-open-api.sh
|
||||||
|
|
||||||
function dart {
|
function dart {
|
||||||
|
|
@ -39,9 +41,9 @@ function typescript {
|
||||||
pnpm --filter immich sync:open-api
|
pnpm --filter immich sync:open-api
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $1 == 'dart' ]]; then
|
if [[ $# -ge 1 ]] && [[ $1 == 'dart' ]]; then
|
||||||
dart
|
dart
|
||||||
elif [[ $1 == 'typescript' ]]; then
|
elif [[ $# -ge 1 ]] && [[ $1 == 'typescript' ]]; then
|
||||||
typescript
|
typescript
|
||||||
else
|
else
|
||||||
dart
|
dart
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue