Skip to content

Commit 730ad78

Browse files
committed
Strip quotes from environment variables when parsing from activate.sh
1 parent c912c25 commit 730ad78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackinator/etc/envvars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def read_activation_script(filename: str, env: Optional[EnvVarSet] = None) -> En
399399
continue
400400

401401
# rhs the value that is assigned to the environment variable
402-
rhs = fields[1]
402+
rhs = fields[1].lstrip("'").rstrip("'")
403403
if name in list_variables:
404404
fields = [f for f in rhs.split(":") if len(f.strip()) > 0]
405405
# look for $name as one of the fields (only works for append or prepend)

0 commit comments

Comments
 (0)