From 87445ccf8c2cf8d4b3b020ffb084329a6962f273 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 27 Feb 2017 09:42:11 +0100 Subject: [PATCH] Add interpreter path Fix #3064 --- Telegram/Resources/langs/download.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/Resources/langs/download.sh b/Telegram/Resources/langs/download.sh index 1f622d3d2b..747d9af90e 100755 --- a/Telegram/Resources/langs/download.sh +++ b/Telegram/Resources/langs/download.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash set -e FullExecPath=$PWD pushd `dirname $0` > /dev/null @@ -26,7 +27,8 @@ done < tdesktop/Telegram/Resources/langs/list cd translations/telegram-desktop.langstrings/ for file in *.strings; do iconv -f "UTF-16LE" -t "UTF-8" "$file" > "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" - awk '{ if (NR==1) sub(/^\xef\xbb\xbf/,""); sub(/ /,""); print }' "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" > "../../tdesktop/Telegram/Resources/langs/lang_$file" + awk '{ if (NR==1) sub(/^\xef\xbb\xbf/,""); sub(/ +/,""); print }' "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" > "../../tdesktop/Telegram/Resources/langs/lang_$file" rm "../../tdesktop/Telegram/Resources/langs/lang_$file.tmp" done touch $FullScriptPath/../telegram.qrc