From 45da08e2e365e938ee64c5e921e8f61819e4905b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 1 Oct 2016 09:59:20 +0100 Subject: [PATCH] Only run tests optionally --- src/freedombone-addremove | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/freedombone-addremove b/src/freedombone-addremove index 6ed99fa3..d63594b5 100755 --- a/src/freedombone-addremove +++ b/src/freedombone-addremove @@ -172,9 +172,11 @@ function install_apps_interactive { install_apps interactive } -${PROJECT_NAME}-tests -if [ ! "$?" = "0" ]; then - exit 2 +if [[ $1 == "test"* ]]; then + ${PROJECT_NAME}-tests + if [ ! "$?" = "0" ]; then + exit 2 + fi fi detect_installable_apps