4078e6ea0e
Many of our scripts have a non-portable interpreter line for bash and use bash-specific variables like `BASH_SOURCE`. Update the interpreter line to be portable between various Linuxes and macOS without complaint from posix shell users.
12 lines
259 B
Bash
Executable file
12 lines
259 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
FILES="$(ls ./*.go | grep -v -e _test.go -e .generated.go | tr '\n' ' ')"
|
|
codecgen \
|
|
-c github.com/hashicorp/go-msgpack/codec \
|
|
-st codec \
|
|
-d 100 \
|
|
-t codegen_generated \
|
|
-o structs.generated.go \
|
|
${FILES}
|