config.sh/aliases: corrected wmRefresh for POSIX compliance

This commit is contained in:
Chris Greenshields
2018-12-04 21:32:25 +00:00
parent 637e93fabd
commit d8da4bd092

View File

@ -71,7 +71,7 @@ alias run='cd $FOAM_RUN'
# Refresh the environment
# ~~~~~~~~~~~~~~~~~~~~~~~
# For backward-compatibility unalias wmRefresh if it is defined as an alias
if command -V wmRefresh | head -1 | grep -q "function"
if command -V wmRefresh 2> /dev/null | head -1 | grep -q "function"
then
unset wmRefresh
else