diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-03-12 07:16:11 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2006-03-12 07:16:11 +0000 |
commit | a2973de3c19a3469bef5f5e886fbba032680bec7 (patch) | |
tree | 4c36ec8321a3add4faa673ab8fd572d1b4df26de /scripts | |
parent | efc29a72981573119c00be72430bb6ee917b87ff (diff) | |
download | ptxdist-a2973de3c19a3469bef5f5e886fbba032680bec7.tar.gz ptxdist-a2973de3c19a3469bef5f5e886fbba032680bec7.tar.xz |
added pipeline checking mechanism
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.10-trunk@5116 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/libptxdist.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 7e32c10a9..e0a52f8ea 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -69,6 +69,18 @@ ptxd_warning() { # +# check if a previously executed pipe returned an error +# +check_pipe_status() { + for i in "${PIPESTATUS[@]}"; do [ $i -gt 0 ] && { + echo "An element in the pipe returned $i, bailing out" + exit $i + } + done +} + + +# # split ipkg filename into it's parts # # input format: |