finn pushed to branch finn/internal-tutorial-fix at BuildGrid / buildgrid
Commits:
-
f9542fee
by Finn at 2018-10-11T17:10:38Z
1 changed file:
Changes:
... | ... | @@ -164,11 +164,11 @@ def run_command(context, input_root, commands, output_file, output_directory): |
164 | 164 |
for output_file_response in execute_response.result.output_files:
|
165 | 165 |
path = os.path.join(output_directory, output_file_response.path)
|
166 | 166 |
|
167 |
- if not os.path.exists(os.path.dirname(path)):
|
|
167 |
+ if not os.path.exists(os.path.dirname(output_directory)):
|
|
168 | 168 |
os.makedirs(os.path.dirname(path), exist_ok=True)
|
169 | 169 |
|
170 | 170 |
downloader.download_file(output_file_response.digest, path)
|
171 | 171 |
|
172 |
- if output_file_response.path in output_executeables:
|
|
173 |
- st = os.stat(path)
|
|
174 |
- os.chmod(path, st.st_mode | stat.S_IXUSR)
|
|
172 |
+ if output_file_response.path in output_executeables:
|
|
173 |
+ st = os.stat(path)
|
|
174 |
+ os.chmod(path, st.st_mode | stat.S_IXUSR)
|