#!/bin/bash

set -e


if [[ -z "${SLEEP_DURATION_IN_SECONDS}" ]]; then
    echo "No SLEEP_DURATION_IN_SECONDS specified, aborting..."
    exit 1
fi

if [[ -z "${EXIT_CODE}" ]]; then
    echo "No EXIT_CODE specified, aborting..."
    exit 1
fi

sleep $SLEEP_DURATION_IN_SECONDS

exit $EXIT_CODE
