From fe0fad1c417c95fb7526cee554f90024baa039ae Mon Sep 17 00:00:00 2001
From: Mark Olesen <Mark.Olesen@esi-group.com>
Date: Mon, 6 May 2019 15:42:16 +0200
Subject: [PATCH] BUG: incorrect tcsh syntax (fixes #1)

---
 openfoam-selector/openfoam-selector.csh.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/openfoam-selector/openfoam-selector.csh.in b/openfoam-selector/openfoam-selector.csh.in
index a0990c7..3027c8d 100644
--- a/openfoam-selector/openfoam-selector.csh.in
+++ b/openfoam-selector/openfoam-selector.csh.in
@@ -25,6 +25,7 @@ if ("$openfoam_selection" != "" && -f "$openfoam_selector_dir/$openfoam_selectio
     # 2nd: test for and source OpenFOAM etc/cshrc
     if ("$openfoam_selection" != "" && -f "$openfoam_selection/etc/cshrc") then
         source "$openfoam_selection/etc/cshrc"
-    fi
-fi
+    endif
+endif
+
 # -----------------------------------------------------------------------------
-- 
GitLab