diff options
author | 6543 <6543@obermui.de> | 2020-11-28 07:12:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 07:12:22 +0100 |
commit | e7b47c521523099826f42b166f7b562741c07834 (patch) | |
tree | 11915204151e179a47c33dc300ec727cc93fada4 /build/update-locales.sh | |
parent | Handle and propagate errors when checking if paths are Dirs, Files or Exist (... (diff) | |
download | forgejo-e7b47c521523099826f42b166f7b562741c07834.tar.xz forgejo-e7b47c521523099826f42b166f7b562741c07834.zip |
Format files (#13698)
* align "make help"
* format
* untouch build/generate-svg.js
* untouch .eslintrc
* combine editorconfig's
* rm editorconfig
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'build/update-locales.sh')
-rwxr-xr-x | build/update-locales.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/update-locales.sh b/build/update-locales.sh index 2dad93513b..046f48ee86 100755 --- a/build/update-locales.sh +++ b/build/update-locales.sh @@ -10,10 +10,10 @@ sed -i -r -e '/^[a-zA-Z0-9_.-]+[ ]*=[ ]*".*"$/ { }' ./options/locale/*.ini # Remove translation under 25% of en_us -baselines=`wc -l "./options/locale_en-US.ini" | cut -d" " -f1` +baselines=$(wc -l "./options/locale_en-US.ini" | cut -d" " -f1) baselines=$((baselines / 4)) for filename in ./options/locale/*.ini; do - lines=`wc -l "$filename" | cut -d" " -f1` + lines=$(wc -l "$filename" | cut -d" " -f1) if [ $lines -lt $baselines ]; then echo "Removing $filename: $lines/$baselines" rm "$filename" |