#!/bin/sh
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
    exec /usr/bin/aws-lambda-rie ./func $1
else
	set -euo pipefail
    exec ./func $_HANDLER
fi