fix SC2126 introduced error (#54545)

Summary:
SC2126 suggested from diff CI is wrong. reverting last commit in https://github.com/pytorch/pytorch/issues/54373

Pull Request resolved: https://github.com/pytorch/pytorch/pull/54545

Reviewed By: samestep

Differential Revision: D27276006

Pulled By: walterddr

fbshipit-source-id: 1a9823e9ad6c6509a36896df88d599546826f4e9
This commit is contained in:
Rong Rong (AI Infra)
2021-03-23 16:35:26 -07:00
committed by Facebook GitHub Bot
parent 4a74b0f2dd
commit 5754816597

View File

@ -3,7 +3,7 @@
# Allows this script to be invoked from any directory:
cd "$(dirname "$0")"
UNCOMMIT_CHANGE=$(git status -s | grep -c " config.yml")
UNCOMMIT_CHANGE=$(git status -s | grep " config.yml" | wc -l | xargs)
if [[ $UNCOMMIT_CHANGE != 0 ]]; then
OLD_FILE=$(mktemp)
cp config.yml "$OLD_FILE"