From a0342a14350b1df59575c45b3b3d51f2338d87e2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 03 Oct 2012 22:28:23 -0400 Subject: Fix some issues in ob-buildopk. --- diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index a79d37b..961b30a 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -40,6 +40,7 @@ main() build_opk "${pkg}" "${OB_BINARY_VERSION}" done fi + rm debian-binary } build_opk() @@ -47,12 +48,12 @@ build_opk() binary="${1}" version="${2}" - (cd ${binary}.data && tar -czf '../data.tar.gz') - (cd ${binary}.control && tar -czf '../control.tar.gz') + (cd "${binary}.data" && tar -czf '../data.tar.gz' '.') + (cd "${binary}.control" && tar -czf '../control.tar.gz' '.') tar -czf ../../${binary}_${version}_all.opk \ debian-binary data.tar.gz control.tar.gz - rm -Rf debian-binary control data.tar.gz control.tar.gz + rm -Rf control data.tar.gz control.tar.gz } main "${@}" -- cgit v0.9.1