From 28b82fe511a0c9a21ca2ee9a2b42066725386d3b Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 21 Jun 2018 21:50:11 +0200 Subject: [PATCH] bugfixes type on zsh gives information in prefix, = comparison operator should not be in in string --- env/DAMASK.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/env/DAMASK.zsh b/env/DAMASK.zsh index 4638ae734..3ceeb116a 100644 --- a/env/DAMASK.zsh +++ b/env/DAMASK.zsh @@ -24,13 +24,13 @@ unset -f set # add DAMASK_BIN if present [ "x$DAMASK_BIN != x" ] && PATH=$DAMASK_BIN:$PATH -SOLVER=$(type -p DAMASK_spectral || true 2>/dev/null) -[ "x$SOLVER == x" ] && SOLVER=$(blink 'Not found!') +SOLVER=$(which DAMASK_spectral || true 2>/dev/null) +[ "x$SOLVER" = "x" ] && SOLVER=$(blink 'Not found!') -PROCESSING=$(type -p postResults || true 2>/dev/null) -[ "x$PROCESSING == x" ] && PROCESSING=$(blink 'Not found!') +PROCESSING=$(which postResults || true 2>/dev/null) +[ "x$PROCESSING" = "x" ] && PROCESSING=$(blink 'Not found!') -[ "x$DAMASK_NUM_THREADS == x" ] && DAMASK_NUM_THREADS=1 +[ "x$DAMASK_NUM_THREADS" = "x" ] && DAMASK_NUM_THREADS=1 # currently, there is no information that unlimited causes problems # still, http://software.intel.com/en-us/forums/topic/501500 suggest to fix it