From e669f4deddee7e0223150534afb58eb772607865 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 16 Nov 2022 02:41:15 -0500 Subject: [PATCH] [F] Try to fix github actions --- .github/workflows/opencc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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