#!/usr/bin/env bash set -euo pipefail trap 'if [ $? -ne 0 ]; then echo "FAILED ($?): Last command to run: $BASH_COMMAND"; fi' EXIT # Load environment variables if [ -f .env ]; then while IFS= read -r line || [[ -n "$line" ]]; do if [[ $line != \#* && $line != '' ]]; then export "$line" fi done < .env else echo ".env file not found" exit 1 fi