#!/usr/bin/env bash
#
# Generated by: https://github.com/openapitools/openapi-generator.git
#

for cmd in {dotnet}; do
  if ! command -v ${cmd} > /dev/null; then
    >&2 echo "This script requires '${cmd}' to be installed."
    exit 1
  fi
done

dotnet build

if [ $? -ne 0 ]
then
  echo "[ERROR] Compilation failed with exit code $?"
  exit 1
else
  echo "[INFO] dotnet build was successful."
fi
