From 16531b339b9bd0f2313ca6aae46a925ae87ed373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Riette?= <sebastien.riette@meteo.fr> Date: Thu, 14 Apr 2022 14:12:58 +0200 Subject: [PATCH] Bugfix for non-existent mesonh/ext directory --- check_commit_mesonh.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/check_commit_mesonh.sh b/check_commit_mesonh.sh index 68e80936d..11c8ae28f 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 -- GitLab