mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-21 05:19:33 +01:00
16 lines
340 B
Bash
16 lines
340 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
if ! which realpath > /dev/null 2>&1
|
||
|
then
|
||
|
echo realpath is not installed
|
||
|
echo run: brew install coreutils
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
old_pwd=$(pwd)
|
||
|
script_path=$(dirname $(realpath "$0"))
|
||
|
cd "$script_path"
|
||
|
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.11.0
|
||
|
oapi-codegen --config cfg.yaml openapi.yml
|
||
|
cd "$old_pwd"
|