Commit f65fe324 authored by mattijs's avatar mattijs
Browse files

BUG: foamEtcFile cannot use 'case' inside $( ) construct.

Reverted to using additional variable.
parent a3d4eb56
...@@ -119,27 +119,27 @@ nArgs=$# ...@@ -119,27 +119,27 @@ nArgs=$#
fileName="$1" fileName="$1"
# Define the various places to be searched: # Define the various places to be searched:
set -- $( files=""
case "$mode" in case "$mode" in
*u*) # user *u*) # user
echo $HOME/.${WM_PROJECT:-OpenFOAM}/$WM_PROJECT_VERSION files="$files $HOME/.${WM_PROJECT:-OpenFOAM}/$WM_PROJECT_VERSION"
echo $HOME/.${WM_PROJECT:-OpenFOAM} files="$files $HOME/.${WM_PROJECT:-OpenFOAM}"
;; ;;
esac esac
case "$mode" in case "$mode" in
*g*) # group *g*) # group
echo $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION files="$files $WM_PROJECT_INST_DIR/site/$WM_PROJECT_VERSION"
echo $WM_PROJECT_INST_DIR/site files="$files $WM_PROJECT_INST_DIR/site"
;; ;;
esac esac
case "$mode" in case "$mode" in
*o*) # other *o*) # other
echo $WM_PROJECT_DIR/etc files="$files $WM_PROJECT_DIR/etc"
;; ;;
esac esac
) set -- $files
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment