-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemet PIPESTATUS env var to handle error correctly.
As tar is here piped into openssl, we only get the return code for openssl and lose the one of tar. This patch fixes this issue using bash PIPESTATUS variable. The piped command now returns return code of tar if openssl succeeds. Otherwise it returns return code of openssl. That means, both the commands should succeed. Change-Id: I6f9de52539f7284d9479805fc4ca478f2ffd9123 Closes-Bug: #1596587
- Loading branch information
Partha Bera
committed
Dec 9, 2016
1 parent
9efe7e4
commit b08c785
Showing
3 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters