From 5fe9fefbd0161ee0267a567cd823e5728af3b4b8 Mon Sep 17 00:00:00 2001 From: hayao Date: Mon, 29 Mar 2021 22:55:01 +0900 Subject: [PATCH] [fix] : source locale.conf in another process --- aptpac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aptpac b/aptpac index a8c5001..27e46b7 100755 --- a/aptpac +++ b/aptpac @@ -266,8 +266,7 @@ if [[ "${direct_option}" = false ]]; then ADD_OPTION "-Syu" ;; huawei) - source "/etc/locale.conf" - if [[ "${LANG}" = "ja_JP.UTF-8" ]]; then + if [[ "$(source "/etc/locale.conf" 2> /dev/null; echo -n "${LANG}")" = "ja_JP.UTF-8" ]]; then echo "(ง •ᴗ•)ว ⁾⁾ファーウェイでウェイウェイ" _exit 0 else -- 2.11.0