From ec1a06d5ba2e632708b8989da5a82261d6aa0704 Mon Sep 17 00:00:00 2001
From: Johannes Meyer <johannes.meyer@icinga.com>
Date: Thu, 7 May 2020 12:02:34 +0200
Subject: [PATCH] icigna-build-deb|rpm-test: Fix array to string conversion

---
 icinga-build-deb-test | 2 +-
 icinga-build-rpm-test | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/icinga-build-deb-test b/icinga-build-deb-test
index fc4e111..da02bda 100755
--- a/icinga-build-deb-test
+++ b/icinga-build-deb-test
@@ -21,7 +21,7 @@ fi
 
 test_script=
 if [ "$#" -gt 0 ]; then
-  test_script="$@"
+  test_script="$*"
 elif [ -f "${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test" ]; then
   test_script="${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test"
 elif [ -f "debian/icinga-build-test" ]; then
diff --git a/icinga-build-rpm-test b/icinga-build-rpm-test
index 26c973f..73b55fa 100755
--- a/icinga-build-rpm-test
+++ b/icinga-build-rpm-test
@@ -58,7 +58,7 @@ esac
 
 test_script=
 if [ "$#" -gt 0 ]; then
-  test_script="$@"
+  test_script="$*"
 elif [ -f "icinga-build-test" ]; then
   test_script="./icinga-build-test"
 elif [ -f "${WORKDIR}/testing/start_test.sh" ]; then
-- 
GitLab