2022-11-16 15:36:14 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
ls -lah
|
|
|
|
git log
|
|
|
|
python3 scripts/convert_zh.py
|
|
|
|
|
|
|
|
# If the hash is the only thing that's changed, don't commit
|
2022-11-16 15:41:15 +08:00
|
|
|
if [[ "$(git diff --numstat | wc -l | xargs)" == 1 ]]; then
|
|
|
|
echo "Nothing changed, resetting"
|
|
|
|
git reset --hard
|
2022-11-16 15:36:14 +08:00
|
|
|
fi
|