From bef8751a6637c6c794f065fb1b01a85c1da959d8 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Thu, 19 Apr 2018 14:48:55 +0100
Subject: [PATCH] Another bugfixto run.run

---
 fsl/utils/run.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl/utils/run.py b/fsl/utils/run.py
index bcf43106a..032e07d97 100644
--- a/fsl/utils/run.py
+++ b/fsl/utils/run.py
@@ -138,7 +138,7 @@ def run(*args, **kwargs):
 
     if DRY_RUN:
         stderr = ''
-        if submit is not None:
+        if submit is None:
             stdout = ' '.join(args)
         else:
             stdout = '[submit] ' + ' '.join(args)
-- 
GitLab