From 8020b709b94e6e4f8b869a378d3b0aba378215b3 Mon Sep 17 00:00:00 2001
From: Matthew Webster <mwebster@fmrib.ox.ac.uk>
Date: Mon, 5 Feb 2018 16:58:47 +0000
Subject: [PATCH] Modified to request install

---
 .conda/post-link.sh  | 10 +++-------
 .conda/pre-unlink.sh |  8 +++-----
 2 files changed, 6 insertions(+), 12 deletions(-)

diff --git a/.conda/post-link.sh b/.conda/post-link.sh
index af4ace989..a8e4d3b04 100755
--- a/.conda/post-link.sh
+++ b/.conda/post-link.sh
@@ -1,8 +1,4 @@
-if [ -z ${FSLDIR} ]; then exit; fi
-if [ ! -d ${FSLDIR}/bin ]; then exit; fi
-scripts="atlasquery atlasq imcp immv imglob"
-for script in $scripts; do
-    if [ -f ${FSLDIR}/bin/${script} ]; then rm ${FSLDIR}/bin/${script}; fi
-    ln -s ${PREFIX}/bin/${script} ${FSLDIR}/bin/${script}
-done
+if [ -e ${FSLDIR}/bin/requestFSLpythonLink.sh ]; then 
+    $FSLDIR/bin/requestFSLpythonLink.sh ${PREFIX}/bin atlasquery atlasq imcp immv imglob
+fi
 
diff --git a/.conda/pre-unlink.sh b/.conda/pre-unlink.sh
index fa79dac52..664ab5de2 100755
--- a/.conda/pre-unlink.sh
+++ b/.conda/pre-unlink.sh
@@ -1,5 +1,3 @@
-if [ -z ${FSLDIR} ]; then exit; fi
-scripts="atlasquery atlasq imcp immv imglob"
-for script in $scripts; do
-    if [ -f ${FSLDIR}/bin/${script} ]; then rm ${FSLDIR}/bin/${script}; fi
-done
+if [ -e ${FSLDIR}/bin/requestFSLpythonUnlink.sh ]; then 
+    $FSLDIR/bin/requestFSLpythonUnlink.sh ${PREFIX}/bin atlasquery atlasq imcp immv imglob
+fi
-- 
GitLab