local there=$(ps -o pid,comm hp $pid >/dev/null)
[[ -z $there ]] || error "Restore initiator does not exit"
- local rc=$(wait $pid)
- [[ $rc -eq 0 ]] || error "Restore initiator failed with $rc"
+ wait $pid || error "Restore initiator failed with $?"
copytool_cleanup
}
local there=$(ps -o pid,comm hp $pid >/dev/null)
[[ -z $there ]] || error "Restore initiator does not exit"
- local rc=$(wait $pid)
- [[ $rc -eq 0 ]] || error "Restore initiator failed with $rc"
+ wait $pid || error "Restore initiator failed with $?"
fid2=$(path2fid $f)
[[ $fid2 == $fid1 ]] || error "Wrong fid after mv $fid2 != $fid1"
[[ -z $there ]] ||
error "Restore initiator does not exit"
- local rc=$(wait $pid)
- [[ $rc -eq 0 ]] ||
- error "Restore initiator failed with $rc"
+ wait $pid || error "Restore initiator failed with $?"
copytool_cleanup
}