diff --git a/resources/l10n/template.pot b/resources/l10n/template.pot index ddad5d25..00accbbe 100644 --- a/resources/l10n/template.pot +++ b/resources/l10n/template.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: LOOT 0.9.2\n" "Report-Msgid-Bugs-To: https://github.com/loot/loot/issues\n" -"POT-Creation-Date: 2016-08-04 18:29+0100\n" +"POT-Creation-Date: 2016-08-04 21:46+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/scripts/git/pre-commit b/scripts/git/pre-commit old mode 100644 new mode 100755 index 1ea1f348..9bd5b00e --- a/scripts/git/pre-commit +++ b/scripts/git/pre-commit @@ -12,7 +12,7 @@ sed -i 's|charset=CHARSET|charset=UTF-8|' resources/l10n/template.pot LINES_ADDED=$(git diff --numstat resources/l10n/template.pot | cut -f 1) LINES_REMOVED=$(git diff --numstat resources/l10n/template.pot | cut -f 2) -if [[ "$LINES_ADDED" -eq "$LINES_REMOVED" && "$LINES_ADDED" -eq 1 ]]; then +if [ "$LINES_ADDED" = "$LINES_REMOVED" -a "$LINES_ADDED" = "1" ]; then git checkout -- resources/l10n/template.pot else git add resources/l10n/template.pot