Summary:
Closes #16983
Remove backticks that are being interpreted by the shell. Add -e option to bash script to avoid future such failures
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16984
Reviewed By: yf225
Differential Revision:
D14039128
Pulled By: kostmo
fbshipit-source-id:
c31a1895377ca86c1b59e79351843cc8c4fd7de3
-#!/bin/bash
+#!/bin/bash -e
COMPACT_JOB_NAME=pytorch-win-ws2016-cuda9-cudnn7-py3-test
source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
if NOT "%BUILD_ENVIRONMENT%"=="" (
cd %TMP_DIR_WIN%\\build
python %TMP_DIR_WIN%\\ci_scripts\\download_image.py %TMP_DIR_WIN%\\%IMAGE_COMMIT_TAG%.7z
- :: 7z: `-aos` skips if exists because this .bat can be called multiple times
+ :: 7z: -aos skips if exists because this .bat can be called multiple times
7z x %TMP_DIR_WIN%\\%IMAGE_COMMIT_TAG%.7z -aos
cd %WORKING_DIR%
) else (