config.sh/aliases: removed "declare" for POSIX compliance

This commit is contained in:
Chris Greenshields
2018-12-04 16:37:19 +00:00
parent c39816f032
commit 44630d3357

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 declare -f wmRefresh > /dev/null
if command -V wmRefresh | head -1 | grep -q "function"
then
unset wmRefresh
else