You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
362 B
Bash
20 lines
362 B
Bash
#!/bin/sh
|
|
|
|
# From: https://stackoverflow.com/a/20909045
|
|
|
|
## Usage:
|
|
## . ./env.sh ; $COMMAND
|
|
## . ./env.sh ; echo ${MINIENTREGA_FECHALIMITE}
|
|
|
|
unamestr=$(uname)
|
|
if [ "$unamestr" = 'Linux' ]; then
|
|
|
|
export $(grep -v '^#' .env | xargs -d '\n')
|
|
|
|
elif [ "$unamestr" = 'FreeBSD' ] || [ "$unamestr" = 'Darwin' ]; then
|
|
|
|
export $(grep -v '^#' .env | xargs -0)
|
|
|
|
fi
|
|
|