corrected bug where "which" output was completely redirected to /dev/null. now only STDERR is dumped, not the desired output, too!

This commit is contained in:
Chen Zhang 2014-08-12 15:15:47 +00:00
parent 47707f86b6
commit c8005247ba
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ if [[ "x$DAMASK_BIN" != "x" && ! `echo ":$PATH:" | grep $DAMASK_BIN:` ]]; then
export PATH=$DAMASK_BIN:$PATH
fi
SOLVER=`which DAMASK_spectral >/dev/null 2>&1`
SOLVER=`which DAMASK_spectral 2>/dev/null`
if [ "x$SOLVER" == "x" ]; then
export SOLVER='Not found!'
fi
PROCESSING=`which postResults >/dev/null 2>&1`
PROCESSING=`which postResults 2>/dev/null`
if [ "x$PROCESSING" == "x" ]; then
export PROCESSING='Not found!'
fi