diff --git a/load-env.sh b/load-env.sh new file mode 100755 index 0000000..083ae63 --- /dev/null +++ b/load-env.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f ./.env ]; then + source ./.env + export $(cut -d= -f1 ./.env) +else + echo "Unable to find .env file." >&2 + echo "Create a new .env by copying .env.example file." >&2 + exit 1 +fi