Skip to content

Commit 90fdad7

Browse files
atalmanfacebook-github-bot
authored andcommitted
Add target os check if TARGET_OS is not set (#1002)
Summary: Fixes crash when TARGET_OS is not set Pull Request resolved: #1002 Reviewed By: NivekT, ejguan Differential Revision: D43164646 Pulled By: atalman fbshipit-source-id: 5ac4ef1a5bf4250db1314e9cca3250a75687450b
1 parent c109c3a commit 90fdad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
AWS_ENABLED=1
99
if [[ ${MATRIX_PACKAGE_TYPE} = "conda" ]]; then
1010
conda install -y torchdata -c "${PYTORCH_CONDA_CHANNEL}"
11-
if [[ ${TARGET_OS} = "windows" ]]; then
11+
if [[ ${TARGET_OS:-} = "windows" ]]; then
1212
AWS_ENABLED=0
1313
fi
1414
else

0 commit comments

Comments
 (0)