diff --git a/icinga-build-deb-test b/icinga-build-deb-test
index fc4e111aa13494f7afb186acf59847b3c321b15b..da02bdaad0d9ba1eee99bd54aa96dc38fa42f076 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 26c973f6d4aee6a5930d015cff516183842f6473..73b55fa5b364c6a530fc7967707aa3941e9b36b6 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