summaryrefslogtreecommitdiffstats
path: root/src/oh-buildopk
diff options
context:
space:
mode:
Diffstat (limited to 'src/oh-buildopk')
-rw-r--r--src/oh-buildopk10
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