Merge branch 'pr_1576'
This commit is contained in:
@ -75,6 +75,12 @@ def shell_run_command(command_str, need_print_all=True, need_print_output=True,
|
|||||||
if data == b'':
|
if data == b'':
|
||||||
if ps.poll() is not None:
|
if ps.poll() is not None:
|
||||||
break
|
break
|
||||||
|
# fix: python2->python3 subprocess shell bug
|
||||||
|
# 2023/09/21 jiangxf
|
||||||
|
try:
|
||||||
|
data = data.decode()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
result["return_message"].append(data)
|
result["return_message"].append(data)
|
||||||
|
|
||||||
if not need_print_all:
|
if not need_print_all:
|
||||||
|
4
deps/init/dep_create.sh
vendored
4
deps/init/dep_create.sh
vendored
@ -70,6 +70,10 @@ function get_os_release() {
|
|||||||
version_ge "8.0" && OS_RELEASE=8 && return
|
version_ge "8.0" && OS_RELEASE=8 && return
|
||||||
version_ge "7.0" && OS_RELEASE=7 && return
|
version_ge "7.0" && OS_RELEASE=7 && return
|
||||||
;;
|
;;
|
||||||
|
almalinux)
|
||||||
|
version_ge "9.0" && compat_centos9 && return
|
||||||
|
version_ge "8.0" && compat_centos8 && return
|
||||||
|
;;
|
||||||
debian)
|
debian)
|
||||||
version_ge "9" && compat_centos7 && return
|
version_ge "9" && compat_centos7 && return
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user