We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dee4d4 commit 1c0dd57Copy full SHA for 1c0dd57
libcxx/utils/ssh.py
@@ -78,8 +78,12 @@ def main():
78
79
# Execute the command through SSH in the temporary directory, with the
80
# correct environment.
81
- command = [exe] + remaining if exe else remaining
82
- res = subprocess.call(ssh('cd {} && env -i {} {}'.format(tmp, ' '.join(args.env), ' '.join(command))))
+ commands = [
+ 'cd {}'.format(tmp),
83
+ 'export {}'.format(' '.join(args.env)),
84
+ ' '.join([exe] + remaining if exe else remaining)
85
+ ]
86
+ res = subprocess.call(ssh(' && '.join(commands)))
87
88
# Remove the temporary directory when we're done.
89
subprocess.call(ssh('rm -r {}'.format(tmp)))
0 commit comments