mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Summary: closes #17336 Do not overwrite config.yml if script throws an error Pull Request resolved: https://github.com/pytorch/pytorch/pull/17485 Differential Revision: D14604388 Pulled By: kostmo fbshipit-source-id: 5024545e3a8711abdbc0800911c766929dbca196
9 lines
172 B
Bash
Executable File
9 lines
172 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
# Allows this script to be invoked from any directory:
|
|
cd $(dirname "$0")
|
|
|
|
NEW_FILE=$(mktemp)
|
|
./generate_config_yml.py > $NEW_FILE
|
|
cp $NEW_FILE config.yml
|