summaryrefslogtreecommitdiffstats
path: root/xci/scripts
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-02-27 12:10:17 +0000
committerMarkos Chandras <mchandras@suse.de>2018-02-27 12:12:13 +0000
commitaba10663bdd5af8e1129bae6c01e7fdd09cb1a4e (patch)
treee45736dc5f07a35b1df94c172c9d7e7f517d5407 /xci/scripts
parente23de04492ce301cab4c0f73f70508faf4140477 (diff)
xci: scripts: start-new-vm: Mask the pgrep exit code
pgrep will exit with non-zero exit code if it didn't find a matching process. This breaks the script since we set 'errexit' so we need to mask it by simply piping it to a 'cat' command. Change-Id: I80dcf06b597a769242bd59d628bbd8e09f0f199e Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/scripts')
-rwxr-xr-xxci/scripts/vm/start-new-vm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh
index 5f7fe590..f53ec5ef 100755
--- a/xci/scripts/vm/start-new-vm.sh
+++ b/xci/scripts/vm/start-new-vm.sh
@@ -127,7 +127,7 @@ esac
echo "Checking for running package manager instance..."
while true; do
- _pkg_mgr_proc=$(pgrep -f "${pkg_mgr_cmd%*install*}")
+ _pkg_mgr_proc=$(pgrep -f "${pkg_mgr_cmd%*install*}" | cat)
if [[ -n ${_pkg_mgr_proc} ]]; then
echo "Wainting for process ${_pkg_mgr_proc} to finish..."
sleep 60