Skip to content
Snippets Groups Projects
Commit adfc1332 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '6890_count_packages_available' into 'master'

fix total count of packages to install

See merge request !210
parents ee65c155 260f46f1
Branches
No related tags found
1 merge request!210fix total count of packages to install
......@@ -17,6 +17,7 @@
# 2023-08-25 v1.5 ah centos9: fix package lists
# 2023-09-12 v1.6 ah almalinux9: fix package lists
# 2023-10-20 v1.7 ah harden sudo command execution
# 2023-12-13 v1.8 ah fix total count of packages to install
# ===============================================================
......@@ -61,7 +62,7 @@ function yum.getStatusLine(){
fi
;;
9)
local _total; _total=$( echo -n "${packages2install}" | wc -l )
local _total; _total=$( grep -c . <<< "${packages2install}" )
local _sec; _sec=$( sudo /usr/bin/yum -y --security check-update \
| grep -v "^Last" \
| grep -v "^No security updates needed" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment