diff options
author | P. J. McDermott <pjm@nac.net> | 2012-01-22 02:15:45 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-01-22 02:15:45 (EST) |
commit | b1a6a77bc6b61bacb78c777da5a8b2c78beb97c3 (patch) | |
tree | ad623ea1aa63c37b6fe8d8865d822c0586f833d9 | |
parent | f7fedd6ccaeaea10c74e9e71b834ce60b5fdc862 (diff) |
Add error handling to oh-buildopk.
-rw-r--r-- | src/oh-buildopk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/oh-buildopk b/src/oh-buildopk index 6e969ba..3d67596 100644 --- a/src/oh-buildopk +++ b/src/oh-buildopk @@ -36,18 +36,18 @@ while [ ${#} -gt 0 ]; do printf 'oh-buildopk: Packing package "%s"...\n' "${1}" # Write debian-binary. - echo '2.0' > debian-binary + echo '2.0' > debian-binary || exit 2 # Pack data.tar.gz. cd ${1}.data - tar -czf ../data.tar.gz . + tar -czf ../data.tar.gz . || exit 2 cd .. # Pack control.tar.gz. cd ${1}.control - tar -czf ../control.tar.gz . + tar -czf ../control.tar.gz . || exit 2 cd .. # Pack opk file. tar -czf ../../${1}_$(oh_get_field Version)_arch.opk \ - debian-binary data.tar.gz control.tar.gz - rm -Rf debian-binary control data.tar.gz control.tar.gz + debian-binary data.tar.gz control.tar.gz || exit 2 + rm -Rf debian-binary control data.tar.gz control.tar.gz || exit 2 shift done |