From: jean-pierre roux Date: Thu, 17 Feb 2011 10:39:51 +0000 (+0000) Subject: Send error message when inconsistent dir X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=sidebyside;h=b55ca1858b03f88aa5903ef3f5db2d482ade400b;p=creaToolsTools.git Send error message when inconsistent dir --- diff --git a/Linux/menu.sh b/Linux/menu.sh index dad1a5c..f769267 100644 --- a/Linux/menu.sh +++ b/Linux/menu.sh @@ -400,12 +400,21 @@ do bash scripts/CreaTools-compile.sh # To allow (*very* aware) user to patch code, later - - chown -R $loginUserName $generationdir/creatools_source - chgrp -R $loginGroupName $generationdir/creatools_source - # Too much time consuming - #chown -R $loginUserName $generationdir/creatools_source - #chgrp -R $loginGroupName $generationdir/creatools_source + if [ -e $loginUserName $generationdir/creatools_source ] + then + echo "You probabely made a mistake : " + echo "Directory $loginUserName $generationdir/creatools_source not found" + echo "Make sure you know the mistake" + echo "Hit any key to continue" + echo "Fix the mistake!" + read a + else + chown -R $loginUserName $generationdir/creatools_source + chgrp -R $loginGroupName $generationdir/creatools_source + # Too much time consuming + #chown -R $loginUserName $generationdir/creatools_source + #chgrp -R $loginGroupName $generationdir/creatools_source + fi ;; 4)