Skip to content

Commit e368344

Browse files
committed
Fix grep
1 parent f5d0186 commit e368344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/scripts/utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ download_stories_model_artifacts() {
124124
do_not_use_nightly_on_ci() {
125125
# An assert to make sure that we are not using PyTorch nightly on CI to prevent
126126
# regression as documented in https://github.com/pytorch/executorch/pull/6564
127-
TORCH_VERSION=$(pip freeze | grep -w torch= | awk -F '==' {'print $2'} | tr -d '\n')
127+
TORCH_VERSION=$(pip list | grep -w 'torch ' | awk -F ' ' {'print $2'} | tr -d '\n')
128128

129129
pushd .ci/docker || return
130130
EXPECTED_TORCH_VERSION=$(cat ci_commit_pins/pytorch.txt)

0 commit comments

Comments
 (0)