Skip to content

Commit af052d0

Browse files
atalmanmsaroufim
authored andcommitted
Fix crash when PYTORCH_VERSION is not defined (#455)
1 parent a8f4e08 commit af052d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/pre_build_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -eux
1010
echo "This script is run before building torchao binaries"
1111

1212
python -m pip install --upgrade pip
13-
if [ -z "$PYTORCH_VERSION" ]; then
13+
if [ -z ${PYTORCH_VERSION:-} ]; then
1414
PYTORCH_DEP="torch"
1515
else
1616
PYTORCH_DEP="torch==$PYTORCH_VERSION"

0 commit comments

Comments
 (0)