Skip to content

Instantly share code, notes, and snippets.

@dmitriy-sqrt
Created May 21, 2020 17:46
Show Gist options
  • Save dmitriy-sqrt/96dbc8a84e8ce18e75ddb468a13d418f to your computer and use it in GitHub Desktop.
Save dmitriy-sqrt/96dbc8a84e8ce18e75ddb468a13d418f to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "ENV loaded"
while IFS="=" read -r key value
do
# skip comments, empty lines
if [ "${key:0:1}" == "#" ] || [ "${key:0:1}" == "" ]; then
continue
fi
#echo "Key : $key"
#echo "Value : $value"
export $key=$value
done < .env.web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment