Do not pipefail as pgrep returns non-zero exit code
Change-Id: I17c1d935058bc9d22bbccd8a4673f1ac0d323671
diff --git a/jjb/cloud-infra/wait-for-pkg-manager.sh b/jjb/cloud-infra/wait-for-pkg-manager.sh
index 53eaa09..70c0c0d 100644
--- a/jjb/cloud-infra/wait-for-pkg-manager.sh
+++ b/jjb/cloud-infra/wait-for-pkg-manager.sh
@@ -20,7 +20,6 @@
set -o errexit
set -o nounset
-set -o pipefail
source /etc/os-release || source /usr/lib/os-release
case ${ID,,} in
@@ -39,7 +38,8 @@
while true; do
pkg_mgr_process=$(pgrep -f $pkg_mgr_cmd | cat)
if [[ -n $pkg_mgr_process ]]; then
- echo "Waiting for $pkg_mgr_cmd process $pkg_mgr_process to finish..."
+ echo "Waiting for $pkg_mgr_cmd processes to finish..."
+ echo "$pkg_mgr_process"
sleep 10
else
echo "$pkg_mgr_cmd process done. Continuing..."