add double quotes for realpath command

This commit is contained in:
Jinzhe Zeng 2020-02-25 10:48:58 -05:00 committed by GitHub
parent df4d6b7eeb
commit aba8e45155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ def realpath(repository_ctx, path, bash_bin = None):
if bash_bin == None:
bash_bin = get_bash_bin(repository_ctx)
return execute(repository_ctx, [bash_bin, "-c", "realpath %s" % path]).stdout.strip()
return execute(repository_ctx, [bash_bin, "-c", "realpath \"%s\"" % path]).stdout.strip()
def err_out(result):
"""Returns stderr if set, else stdout.