Allow multiline strings to work okay in only_if

Fixes issue #1137
pull/1148/head
Daniel Hokka Zakrisson 13 years ago
parent 9377c3f525
commit be9d7df6c4

@ -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?'''

Loading…
Cancel
Save