api-testing/e2e/code-generator/golang.sh

14 lines
198 B
Bash
Executable File

#!/bin/bash
set -e
export sourcefile=$1
# exit if no source file is specified
if [ -z "$sourcefile" ]
then
echo "no source file is specified"
exit 1
fi
mv ${sourcefile} main.go
go run main.go