Skip to content

Commit

Permalink
grass.py: Evaluate ^export lines only and expand variables in double/…
Browse files Browse the repository at this point in the history
…non-quoted values
  • Loading branch information
HuidaeCho authored and neteler committed Dec 13, 2019
1 parent 20130c2 commit 6ed5a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/init/grass.py
Expand Up @@ -1175,7 +1175,7 @@ def load_env(grass_env_file):
elif v.startswith('"') and v.endswith('"'):
v = v.strip('"')
elif v.startswith("'") or v.endswith("'") or v.startswith('"') or v.endswith('"'):
# multi-line variable
# ignore multi-line variables
continue
if expand:
v = os.path.expanduser(os.path.expandvars(v.replace('\$', '\0')).replace('\0', '$'))
Expand Down

0 comments on commit 6ed5a58

Please sign in to comment.