From a40e39f07220aac13603f40c93a685cf42f18272 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Fri, 10 Mar 2017 08:20:14 +0900
Subject: [PATCH] Fix find command

---
 scripts/build-docker.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/build-docker.sh b/scripts/build-docker.sh
index 742ae54..ee6403b 100644
--- a/scripts/build-docker.sh
+++ b/scripts/build-docker.sh
@@ -41,7 +41,7 @@ build_ubuntu() {
 
     su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
 
-    transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.deb")"
+    transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.deb")"
 }
 
 build_fedora() {
@@ -60,7 +60,7 @@ build_fedora() {
 
     su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
 
-    transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.rpm")"
+    transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.rpm")"
 }
 
 build_archlinux() {
@@ -76,7 +76,7 @@ build_archlinux() {
 
     su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
 
-    transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.pkg.tar.xz")"
+    transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.pkg.tar.xz")"
 }
 
 build_snap() {
@@ -92,7 +92,7 @@ build_snap() {
 
     su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
 
-    transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.snap")"
+    transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.snap")"
 }
 
 build_appimage() {
@@ -110,7 +110,7 @@ build_appimage() {
 
     su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
 
-    transfer_file "$(find "${PROJDIR}/build_*" -type f -name "${PKGNAME}*.AppImage")"
+    transfer_file "$(find "${PROJDIR}/build_"* -type f -name "${PKGNAME}*.AppImage")"
 }
 
 if [ "${BUILDTYPE}" = 'ubuntu' ]; then
-- 
GitLab