add pipestatus to ci script