Created
May 21, 2020 17:46
-
-
Save dmitriy-sqrt/96dbc8a84e8ce18e75ddb468a13d418f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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