diff --git a/check_commit_mesonh.sh b/check_commit_mesonh.sh index 68e80936db2ce39702d5961bf0c5cfec5970432b..11c8ae28fe90c7ee73d1fa4591fbaf48903cbfba 100755 --- a/check_commit_mesonh.sh +++ b/check_commit_mesonh.sh @@ -181,8 +181,10 @@ if [ $compilation -eq 1 ]; then find PHYEX -type f -exec touch {} \; #to be sure a recompilation occurs # Move manually ext/ files in src/MNH - mv -f PHYEX/ext/* MNH/ - rmdir PHYEX/ext + if [ -d PHYEX/ext ]; then + mv -f PHYEX/ext/* MNH/ + rmdir PHYEX/ext + ] cd $MNHPACK/$name/src/PHYEX/turb # Delete files of MNH-V5-5-0/src/MNH and MNH/src/LIB/SURCOUCHE/src with same name