Fix empty env string case

This commit is contained in:
Joe Rickerby
2017-09-06 18:35:42 +01:00
parent b18684aee5
commit 34e8ee0f25
2 changed files with 19 additions and 0 deletions
+3
View File
@@ -28,6 +28,9 @@ def split_env_items(env_string):
>>> split_env_items('PATH2="something with spaces"')
['PATH2="something with spaces"']
'''
if not env_string:
return []
command_node = bashlex.parsesingle(env_string)
result = []