Skip to content

Instantly share code, notes, and snippets.

@Sebi2020
Sebi2020 / runwithenv.sh
Created Apr 9, 2020
Allows you to run programs with an environment specified by `.env` files
View runwithenv.sh
#!/bin/bash
if [ $# -lt 1 ]; then
echo "Missing parameter!"
exit 1
fi
env $(cat .env | xargs) $1
You can’t perform that action at this time.