while "clean " in line[0:6]: #skip clean calls with ending ";" crash
line = self.fp.readline()
if "=" in line:
- variable, value = line.split('=')
+ try:
+ variable, value = line.split('=')
+ except: #avoid error for complicated sh line xx=`...=...`, but warning
+ print "WARNING: EnvFileConverter: line with multiples '=' character are hazardous: '"+line+"'"
+ variable, value = line.split('=',1)
self.allParsedVariableNames.append(variable)
# Self-extending variables that are not in reserved keywords
# Example: FOO=something:${FOO}