diff options
-rw-r--r-- | src/ob-buildopk.sh | 7 |
1 files changed, 4 insertions, 3 deletions
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 "${@}" |