Skip to content

Commit

Permalink
please no more csh scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
jooh committed Dec 20, 2019
1 parent 321a49f commit 07942dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuroconda.csh
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 07942dc

Please sign in to comment.