From ab2ffa16ef95c95875b8cba383717831181550bb Mon Sep 17 00:00:00 2001
From: Paul McCarthy <paulmc@fmrib.ox.ac.uk>
Date: Thu, 25 Oct 2018 15:52:08 +0100
Subject: [PATCH] Make sed regex portable

---
 fsl_course/feat3/feedsRun3.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl_course/feat3/feedsRun3.py b/fsl_course/feat3/feedsRun3.py
index c15eda8..a40cf87 100755
--- a/fsl_course/feat3/feedsRun3.py
+++ b/fsl_course/feat3/feedsRun3.py
@@ -36,7 +36,7 @@ cmd = "./cleanFSF.py {0} {1} {2} {3} {4} {5}".format(
     origFSF, newFSF, origDataDir, dataDir, outDir, origFSLDir)
 
 run(cmd)
-cmd = """sed -i 's!set feat_files(1).*!set feat_files(1) "{0}"!g' {1}""".format(newFeatDir,newFSF)
+cmd = """sed -i 's/set feat_files(1).*/set feat_files(1) "{0}"/g' {1}""".format(newFeatDir,newFSF)
 print(cmd)
 run(cmd)
 
-- 
GitLab