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

fix total count of packages to install

parent ee65c155
No related branches found
No related tags found
1 merge request!210fix total count of packages to install
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
# 2023-08-25 v1.5 ah centos9: fix package lists # 2023-08-25 v1.5 ah centos9: fix package lists
# 2023-09-12 v1.6 ah almalinux9: fix package lists # 2023-09-12 v1.6 ah almalinux9: fix package lists
# 2023-10-20 v1.7 ah harden sudo command execution # 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(){ ...@@ -61,7 +62,7 @@ function yum.getStatusLine(){
fi fi
;; ;;
9) 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 \ local _sec; _sec=$( sudo /usr/bin/yum -y --security check-update \
| grep -v "^Last" \ | grep -v "^Last" \
| grep -v "^No security updates needed" \ | 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