Bug 1325787 - Fix MozillaBuild so profile-rustup.sh doesn't break Windows users who have aliased 'cd'. r=gps

This commit is contained in:
Jonathan Watt 2016-12-24 20:02:23 +00:00
parent 2041039808
commit 5c31ea5e34

View File

@ -35,7 +35,7 @@ class MozillaBuildBootstrapper(BaseBootstrapper):
with open(mozillabuild_dir + 'msys/etc/profile.d/profile-rustup.sh', 'wb') as f:
f.write('#!/bash/sh\n')
f.write('if test -n "$MOZILLABUILD"; then\n')
f.write(' WIN_HOME=$(cd "$HOME" && pwd)\n')
f.write(' WIN_HOME=$(command cd "$HOME" && pwd)\n')
f.write(' PATH="$WIN_HOME/.cargo/bin:$PATH"\n')
f.write(' export PATH\n')
f.write('fi')