mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook GitHub Bot
parent
4a74b0f2dd
commit
5754816597
@ -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"
|
||||
|
Reference in New Issue
Block a user