diff --git a/.github/workflows/opencc.sh b/.github/workflows/opencc.sh index f93ffb7e..45dc32a7 100755 --- a/.github/workflows/opencc.sh +++ b/.github/workflows/opencc.sh @@ -4,6 +4,7 @@ git log python3 scripts/convert_zh.py # If the hash is the only thing that's changed, don't commit -if [[ "$(git diff --numstat | wc -l)" == "1" ]]; then - git reset –-hard +if [[ "$(git diff --numstat | wc -l | xargs)" == 1 ]]; then + echo "Nothing changed, resetting" + git reset --hard fi