Commit 8b55217d by Michael DeHaan

Merge pull request #1148 from dhozac/multiline-only_if

Allow multiline strings to work okay in only_if
parents e442175a be9d7df6
......@@ -141,7 +141,7 @@ def check_conditional(conditional):
return not var.startswith("$")
def is_unset(var):
return var.startswith("$")
return eval(conditional)
return eval(conditional.replace("\n", "\\n"))
def is_executable(path):
'''is the given path executable?'''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment