projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dcaf84
)
small fix to prevent strings for being literally quoted
release-20150325
author
Bryan
<btbonval@gmail.com>
Wed, 25 Mar 2015 05:46:08 +0000
(
01:46
-0400)
committer
Bryan
<btbonval@gmail.com>
Wed, 25 Mar 2015 05:46:08 +0000
(
01:46
-0400)
export_env_to_heroku.py
patch
|
blob
|
history
diff --git
a/export_env_to_heroku.py
b/export_env_to_heroku.py
index 5048e6362c790e55d97a78dc69fd25971d4a4ddf..7b682726c68edd9df4918f2c8dbf9567d410d6f7 100644
(file)
--- a/
export_env_to_heroku.py
+++ b/
export_env_to_heroku.py
@@
-11,6
+11,10
@@
def export_env(filename='.env'):
tmp = line.split('=')
# further ignore whitespace padding that was around the =
tmp = map(str.strip, tmp)
+ # Strip any quotes that might show up around the string
+ def striphyphen(somestring):
+ return somestring.strip("'").strip('"')
+ tmp = map(striphyphen, tmp)
if len(tmp[0]) and tmp[0][0] == '#':
# the heroku CLI cannot return if a variable is not yet set
# or if it has been set to the empty string.