Rollback of PR : Fixed build issue on windows: realpath command not found. Reason: Nightly build breaks with the change.

PiperOrigin-RevId: 349488182
Change-Id: I1f77153f1fd1f7a51ca2d79f77222a63ad40c2fd
This commit is contained in:
Hye Soo Yang 2020-12-29 17:08:38 -08:00 committed by TensorFlower Gardener
parent 1c4d31960b
commit 4f87b797b0

View File

@ -274,7 +274,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, "-cl", "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.