summaryrefslogtreecommitdiff
path: root/bin/sbuild-deb-package
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sbuild-deb-package')
-rwxr-xr-xbin/sbuild-deb-package4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index 06d61bd..7d99a3b 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -281,7 +281,7 @@ build_packages() {
if echo $line | grep -E "^Files:" 1>/dev/null; then break; fi
# each line contains a file that is part of the src:package
filename="$(echo $line | cut -d" " -f3-)"
- cp "${TEMP_DIR}/${filename}" .
+ if [ -n "$filename" ]; then cp "${TEMP_DIR}/${filename}" .; fi
done
if [ -z "${OTHERMIRROR}" ]; then
nice ${SBUILD} ${SBUILD_OPTIONS_64} "${DSCFILE}"
@@ -295,7 +295,7 @@ build_packages() {
if echo $line | grep -E "^Files:" 1>/dev/null; then break; fi
# each line contains a file that is part of the src:package
filename="$(echo $line | cut -d" " -f3-)"
- cp "${TEMP_DIR}/${filename}" .
+ if [ -n "$filename" ]; then cp "${TEMP_DIR}/${filename}" .; fi
done
if [ -z "${OTHERMIRROR}" ]; then
nice ${SBUILD} ${SBUILD_OPTIONS_32} "${DSCFILE}"