mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
PR#1511 introduced a `flock` command in order to let AArch64 CI can be executed with multiple executors. However the command ``` ( echo "try to lock $WORKLOADS_DIR folder and update" flock -x 12 && update_workloads ) ``` will introduce an abnormal behavior: If any error happened in function `updated_workloads`, the sub-shell opened by the pair of parentheses will be killed instead of the main shell, which is not right. This commit fixes this abnormal execution behaviour. Signed-off-by: Henry Wang <Henry.Wang@arm.com>