1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

silent pre-commit hook

This commit is contained in:
bbedward
2025-11-06 23:19:10 -05:00
parent f2ec3ae755
commit f8d383cff0

View File

@@ -8,16 +8,14 @@ REPO_ROOT="$(cd "$HOOK_DIR/.." && pwd)"
cd "$REPO_ROOT"
if [[ -z "${POEDITOR_API_TOKEN:-}" ]] || [[ -z "${POEDITOR_PROJECT_ID:-}" ]]; then
echo "Skipping i18n sync check (POEDITOR_API_TOKEN or POEDITOR_PROJECT_ID not set)"
exit 0
fi
if ! command -v python3 &>/dev/null; then
echo "Warning: python3 not found, skipping i18n check"
exit 0
fi
if ! python3 scripts/i18nsync.py check 2>&1; then
if ! python3 scripts/i18nsync.py check &>/dev/null; then
echo ""
echo "Run: python3 scripts/i18nsync.py sync"
echo ""