aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2012-03-13 17:12:32 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2012-03-13 17:12:32 +0900
commit2ab7c50ef2a39961c0a037b8ae07bb7df2593693 (patch)
tree07fcf6245b7427e0044d65e2dd752666c5239ed3
parent21fd0ff9341f4ec3c51421158a3ea796474e4ded (diff)
downloadpbuilder-2ab7c50ef2a39961c0a037b8ae07bb7df2593693.tar
pbuilder-2ab7c50ef2a39961c0a037b8ae07bb7df2593693.tar.gz
fix space handling in additional-buildresults.
-rwxr-xr-xpbuilder-buildpackage2
-rw-r--r--pdebuild2
2 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index c39f21d..f8cb5ae 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -173,7 +173,7 @@ if [ -d "${BUILDRESULT}" ]; then
done
if [ -n "${ADDITIONAL_BUILDRESULTS}" ]; then
echo "Saving additional results ${ADDITIONAL_BUILDRESULTS[*]}"
- for FILE in ${ADDITIONAL_BUILDRESULTS[*]}; do
+ for FILE in "${ADDITIONAL_BUILDRESULTS[@]}"; do
cp -a "${BUILDPLACE}/tmp/buildd/"*"/${FILE}" "${BUILDRESULT}" || true
done
fi
diff --git a/pdebuild b/pdebuild
index a98c253..ed8deb4 100644
--- a/pdebuild
+++ b/pdebuild
@@ -65,7 +65,7 @@ if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then
conditional_cp_a ../${CHANGES} "${BUILDRESULT}"
if [ -n "${ADDITIONAL_BUILDRESULTS}" ]; then
echo "Saving additional results ${ADDITIONAL_BUILDRESULTS[*]}"
- for FILE in ${ADDITIONAL_BUILDRESULTS[*]}; do
+ for FILE in "${ADDITIONAL_BUILDRESULTS[@]}"; do
conditional_cp_a "${FILE}" "${BUILDRESULT}" || true
done
fi