diff --git a/check_commit_mesonh.sh b/check_commit_mesonh.sh
index 11c8ae28fe90c7ee73d1fa4591fbaf48903cbfba..274c90548f333bb962e638c4185d71407ec896d1 100755
--- a/check_commit_mesonh.sh
+++ b/check_commit_mesonh.sh
@@ -184,7 +184,7 @@ if [ $compilation -eq 1 ]; then
   if [ -d PHYEX/ext ]; then
     mv -f PHYEX/ext/* MNH/
     rmdir PHYEX/ext
-  ]
+  fi
 
   cd $MNHPACK/$name/src/PHYEX/turb
   # Delete files of MNH-V5-5-0/src/MNH and MNH/src/LIB/SURCOUCHE/src with same name