From 07942dccf0e57c68a2aeacd5d75edacc555a7612 Mon Sep 17 00:00:00 2001 From: Johan Carlin Date: Fri, 20 Dec 2019 11:14:23 +0000 Subject: [PATCH] please no more csh scripting --- neuroconda.csh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neuroconda.csh b/neuroconda.csh index c22eff4..34ff183 100644 --- a/neuroconda.csh +++ b/neuroconda.csh @@ -38,7 +38,7 @@ setenv NEUROCONDA_NEWPATH `echo "$PATH" | sed 's@'"$NEUROCONDA_OLDPATH"'@@g'` # work out script directory # (it's instructive to compare how ugly and slow this is compared to the bash solution) -set scriptdir = `lsof -w +p $$ | grep -oE /.\*neuroconda.csh | echo $script_path | xargs -0 dirname` +set scriptdir = `lsof -w +p $$ | grep -oE /.\*neuroconda.csh | xargs -0 dirname` # work out what the conda version is setenv NEUROCONDA_VERSION `cat $scriptdir/neuroconda.yml | tr -s ' ' | grep -o 'name: .*' | cut -d ' ' -f 2`