Blame view

update_amda/cleanNewMetaParamInfo 405 Bytes
4c77b9b1   Elena.Budnik   final update
1
2
#!/bin/bash

99ae8744   Benjamin Renard   Use config variab...
3
4
5
6
7
8
9
10
11
12
13
SCRIPT=$(readlink -f "$0")
export UPDATEDIR=$(dirname "$SCRIPT")
. $UPDATEDIR/updateEnv.sh

if [ -z ${NEWMETA} ]
then
        echo "[ERROR] check if NEWMETA env variable is defined"
        exit 1
fi

if [ -d "$NEWMETA" ]
4c77b9b1   Elena.Budnik   final update
14
15
16
then 	
			for Dir in $(find -L $NEWMETA/ParamInfo -type d)
				do
99ae8744   Benjamin Renard   Use config variab...
17
					rm -f ${Dir}/*   
4c77b9b1   Elena.Budnik   final update
18
19
20
				done 								
	 
else
99ae8744   Benjamin Renard   Use config variab...
21
     echo "[ERROR] NEWMETA env var is not defined" 
4c77b9b1   Elena.Budnik   final update
22
fi