diff --git a/.conda/post-link.sh b/.conda/post-link.sh index a0f609571b5930d13d68a423c1ed94efdaa8183b..58c97357d6d0afe1b7ccee48e3c1191d091771e8 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 4a0dc27792b86996fe02a84d387378b62bfa6f62..5b5b679b67e7da69bf22d6282892391d6cfaba1c 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