Fix status checking for pipes.

This commit is contained in:
GRMrGecko 2023-08-23 13:56:58 -05:00
parent 45459c1e50
commit 9d699a27ef

View File

@ -108,7 +108,7 @@ while read -r line; do
IMAGES+=("$IMAGE") IMAGES+=("$IMAGE")
done < <( done < <(
virsh domblklist $DOMAIN | tail -n +3 virsh domblklist $DOMAIN | tail -n +3
echo $? >$BLKLIST_STATUS_TMP echo ${PIPESTATUS[0]} >$BLKLIST_STATUS_TMP
) )
# Get status from the block listing. # Get status from the block listing.
@ -222,7 +222,7 @@ while read -r line; do
fi fi
done < <( done < <(
virsh list --all | tail -n +3 virsh list --all | tail -n +3
echo $? >$DOMLIST_STATUS_TMP echo ${PIPESTATUS[0]} >$DOMLIST_STATUS_TMP
) )
# Get status from the domain listing. # Get status from the domain listing.