mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
config.sh/aliases: corrected wmRefresh for POSIX compliance
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user