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:
parent
47707f86b6
commit
c8005247ba
|
@ -16,11 +16,11 @@ if [[ "x$DAMASK_BIN" != "x" && ! `echo ":$PATH:" | grep $DAMASK_BIN:` ]]; then
|
||||||
export PATH=$DAMASK_BIN:$PATH
|
export PATH=$DAMASK_BIN:$PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SOLVER=`which DAMASK_spectral >/dev/null 2>&1`
|
SOLVER=`which DAMASK_spectral 2>/dev/null`
|
||||||
if [ "x$SOLVER" == "x" ]; then
|
if [ "x$SOLVER" == "x" ]; then
|
||||||
export SOLVER='Not found!'
|
export SOLVER='Not found!'
|
||||||
fi
|
fi
|
||||||
PROCESSING=`which postResults >/dev/null 2>&1`
|
PROCESSING=`which postResults 2>/dev/null`
|
||||||
if [ "x$PROCESSING" == "x" ]; then
|
if [ "x$PROCESSING" == "x" ]; then
|
||||||
export PROCESSING='Not found!'
|
export PROCESSING='Not found!'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue