diff --git a/.conda/post-link.sh b/.conda/post-link.sh index af4ace98972a59cca1f2a4c0d46ea10883e96d26..a8e4d3b04d729c50706fead20e59d3699d063575 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 fa79dac5240a78d3184c3873bab50bf2957487ba..664ab5de2b130ea14ca662f8df45eca1a6e1af32 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