summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ob-unpacksource.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index 83d1bb4..a4bb88d 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -38,14 +38,13 @@ unpack_native()
get_upstream_archive()
{
upstream_ar_base="${OPK_SOURCE}-${OPK_SOURCE_VERSION_UPSTREAM}.orig.tar"
- upstream_ar="$(printf '%s ' "../${upstream_ar_base}"*)"
- upstream_ar="${upstream_ar% }"
+ upstream_ar="$(printf '%s\n' "../${upstream_ar_base}"*)"
case "${upstream_ar}" in
"../${upstream_ar_base}*")
ob_info "$(ob_get_msg 'no_sources')"
return 1
;;
- *' '*)
+ *"${OB_LF}"*)
ob_error "$(ob_get_msg 'multiple_upstream_sources')"
return 1
;;