diff options
author | Pjotr Prins | 2018-03-26 09:28:26 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-03-26 09:28:26 +0000 |
commit | 193a0c19647b37eeb9d18df02e1436d422b4f843 (patch) | |
tree | 7aa380ef91c6193998f29624344e68a5aabd73c0 /bin | |
parent | e0295504fb0097db394e99568339e24a71406123 (diff) | |
download | genenetwork2-193a0c19647b37eeb9d18df02e1436d422b4f843.tar.gz |
Fix conflict
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/genenetwork2 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index 3fe8baa0..74ed7f9b 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -129,7 +129,11 @@ else if [ -z $GEMMA_WRAPPER_COMMAND ]; then export GEMMA_WRAPPER_COMMAND="$GN2_PROFILE/bin/gemma-wrapper" fi - if [ ! -d $PYTHONPATH ] ; then echo "PYTHONPATH not valid "$PYTHONPATH ; exit 1 ; fi + while IFS=":" read -ra PPATH; do + for PPART in "${PPATH[@]}"; do + if [ ! -d $PPART ] ; then echo "$PPART in PYTHONPATH not valid $PYTHONPATH" ; exit 1 ; fi + done + done <<< "$PYTHONPATH" if [ ! -d $R_LIBS_SITE ] ; then echo "R_LIBS_SITE not valid "$R_LIBS_SITE ; exit 1 ; fi if [ ! -d $GEM_PATH ] ; then echo "GEM_PATH not valid "$GEM_PATH ; exit 1 ; fi fi |