parent
ff204b1d10
commit
ec87f5d80a
|
|
@ -89,8 +89,9 @@ pre_check() {
|
|||
for tool in "${required_tools[@]}"; do
|
||||
if ! command -v "$tool" &> /dev/null; then
|
||||
log "INFO" "安装缺失工具:$tool"
|
||||
apt-get update -qq >/dev/null
|
||||
apt-get install -qq -y "$tool" >/dev/null
|
||||
apt-get update
|
||||
#apt-get install -qq -y "$tool" >/dev/null
|
||||
apt-get install -y "$tool"
|
||||
fi
|
||||
done
|
||||
log "INFO" "前置检查通过"
|
||||
|
|
|
|||
Loading…
Reference in New Issue