From 3e0d1a33debc804b134a2edd7d6261c329e153bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 26 Feb 2023 00:09:35 +0800 Subject: [PATCH] Fix another shellcheck issue. --- init-po-files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-po-files b/init-po-files index 2cb8aac..fa299fa 100755 --- a/init-po-files +++ b/init-po-files @@ -41,7 +41,7 @@ for dir in */; do svn add "$podir" fi for file in $(find . -name '*.pot'); do - po=$(echo "$file" | sed 's/.\{1\}$//') + po=${file:0:-1} if [ ! -e "$podir/$po" ]; then echo -e "${RED}${dir}/${po}${ENDCOLOR}" msginit -i "$file" -o "$podir/$po" --no-translator