Salome HOME
Issue 0020414: rm -rf unprotected in a script of SALOME Application V5_1_2_BR V5_1_2 V5_1_2rc5
authorvsr <vsr@opencascade.com>
Thu, 2 Jul 2009 07:14:38 +0000 (07:14 +0000)
committervsr <vsr@opencascade.com>
Thu, 2 Jul 2009 07:14:38 +0000 (07:14 +0000)
bin/appli_clean.sh

index a5413a73733df5d6d79c1f54bd42ec891de9da91..8c5151431abdbd4a82e2e853f2d8fe0995af7da3 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 #clean appli
-#
-rm -rf bin lib share doc idl env.d envd USERS getAppliPath.py searchFreePort.sh runAppli runConsole runSession runRemote.sh runTests SalomeApp.xml *.pyc *~ .bashrc
+
+DELCOM="rm -rf bin lib share doc idl env.d envd USERS getAppliPath.py searchFreePort.sh runAppli runConsole runSession runRemote.sh runTests SalomeApp.xml *.pyc *~ .bashrc"
+echo "Do you want to delete a SALOME application in this directory ? " `pwd`
+echo "command to execute: " $DELCOM
+echo "enter yes or no"
+read ANSWER
+echo "ANSWER="$ANSWER
+if [ "x$ANSWER" == "xyes" ]
+then
+  $DELCOM
+fi