summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-11-28 07:12:22 +0100
committerGitHub <noreply@github.com>2020-11-28 01:12:22 -0500
commite7b47c521523099826f42b166f7b562741c07834 (patch)
tree11915204151e179a47c33dc300ec727cc93fada4 /build
parent742e21aeba5c02935269a2a3681f4486019ce542 (diff)
downloadgitea-e7b47c521523099826f42b166f7b562741c07834.tar.gz
gitea-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')
-rwxr-xr-xbuild/update-locales.sh4
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"