Commit 8be5f3ee authored by Johannes Meyer's avatar Johannes Meyer

icinga-build-deb|rpm-test: Fix positional argument detection

parent c1846554
......@@ -20,7 +20,7 @@ fi
)
test_script=
if [ -n "$@" ]; then
if [ "$#" -gt 0 ]; then
test_script="$@"
elif [ -f "${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test" ]; then
test_script="${ICINGA_BUILD_DEB_FLAVOR}/debian/icinga-build-test"
......
......@@ -57,7 +57,7 @@ REPO
esac
test_script=
if [ -n "$@" ]; then
if [ "$#" -gt 0 ]; then
test_script="$@"
elif [ -f "icinga-build-test" ]; then
test_script="./icinga-build-test"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment