From 8764a6497cece0adf51d7d16d8ad40e10d45377d Mon Sep 17 00:00:00 2001
From: Matthew Webster <mwebster@fmrib.ox.ac.uk>
Date: Mon, 29 Jan 2018 15:01:50 +0000
Subject: [PATCH] Auto install links to scripts, typo

---
 .conda/post-link.sh  | 4 ++--
 .conda/pre-unlink.sh | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.conda/post-link.sh b/.conda/post-link.sh
index a0f609571..58c97357d 100755
--- a/.conda/post-link.sh
+++ b/.conda/post-link.sh
@@ -2,7 +2,7 @@ if [ -z ${FSLDIR} ]; then exit; fi
 if [ ! -d ${FSLDIR}/bin ]; then exit; fi
 scripts="atlasquery imcp immv imglob"
 for script in $scripts; do
-    if [ -f ${FSLDIR}/bin/${file} ]; then rm ${FSLDIR}/bin/${file}; fi
-    ln -s ${PREFIX}/bin/${file} ${FSLDIR}/bin/${file}
+    if [ -f ${FSLDIR}/bin/${script} ]; then rm ${FSLDIR}/bin/${script}; fi
+    ln -s ${PREFIX}/bin/${script} ${FSLDIR}/bin/${script}
 done
 
diff --git a/.conda/pre-unlink.sh b/.conda/pre-unlink.sh
index 4a0dc2779..5b5b679b6 100755
--- a/.conda/pre-unlink.sh
+++ b/.conda/pre-unlink.sh
@@ -1,5 +1,5 @@
 if [ -z ${FSLDIR} ]; then exit; fi
 scripts="atlasquery imcp immv imglob"
 for script in $scripts; do
-    if [ -f ${FSLDIR}/bin/${file} ]; then rm ${FSLDIR}/bin/${file}; fi
+    if [ -f ${FSLDIR}/bin/${script} ]; then rm ${FSLDIR}/bin/${script}; fi
 done
-- 
GitLab