!303 修复gs_checkos bug

Merge pull request !303 from scarbor_fair/master
This commit is contained in:
opengauss-bot
2020-10-16 10:53:37 +08:00
committed by Gitee

View File

@ -282,7 +282,7 @@ def collectUnicode():
output : Instantion
"""
data = codename()
cmd = "source /etc/profile; locale | grep '^LANG='"
cmd = "locale | grep '^LANG='"
status, output = subprocess.getstatusoutput(cmd)
if status != 0:
raise Exception((ErrorCode.GAUSS_505["GAUSS_50502"] % "Unicode") +