Commit 5848957d authored by Cedric Jourdain's avatar Cedric Jourdain
Browse files

Handle clean part

parent 65e536d2
......@@ -90,7 +90,21 @@ Install(){
Clean(){
if [ ! -z "$install_dir" ] && [ -d $install_dir ];then
echo "==> Clean installation directory"
rm -rf $install_dir
while true
do
echo "===> Choose Test Case directory to delete: (A, B, none)"
read answer1
if [ "$answer1" = "A" ] || [ "$answer1" = "B" ] || [ "$answer1" = "none" ]; then break;fi
done
if [ $answer1 = "A" ]; then
echo "Delete $install_dir/TestCaseA"
rm -rf $install_dir/TestCaseA
elif [ $answer1 = "B" ]; then
echo "Delete $install_dir/TestCaseB"
rm -rf $install_dir/TestCaseB
elif [ $answer1 = "none" ]; then
echo "Nothing to delete, next step"
fi
else
echo "Error with install_dir variable"
exit
......@@ -101,7 +115,7 @@ Deploy(){
echo "install_dir ="$install_dir
if [ $machine = "occigen" ] || [ $machine = "marenostrum" ] || [ $machine = "marconi-knl" ] || [ $machine = "daint-cpu-only" ] || [ $machine = "daint-gpu" ] || [ $machine = "davide" ] || [ $machine = "juwels" ] || [ $machine = "irene-skl" ] || [ $machine = "irene-knl" ] || [ $machine = "dibona" ] || [ $machine = "frioul" ];then
echo "==> Install on $machine :"
#Clean
Clean
mkdir -p $install_dir
export ueabs_dir=`pwd`
Untar
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment