Skip to content
Snippets Groups Projects
Commit 8be5f3ee authored by Johannes Meyer's avatar Johannes Meyer
Browse files

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

parent c1846554
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment