Take trap statement inside the if clause
[domino.git] / tests / run_multinode.sh
index 4f4f075..43466b7 100755 (executable)
@@ -123,9 +123,8 @@ launch_domino() {
 
 echo "domino/tests/run_multinode.sh has been executed."
 
-trap cleanup EXIT
-
 if [ "$IS_IPandKEY_CONFIGURED" = "true" ]; then
+    trap cleanup EXIT
 
     cleanup
     prepare_testenv