|
@@ -18,8 +18,8 @@ fileName2=${PREDICT_PATH}/${model_name}_${today}_new.txt
|
|
if [ -f "${fileName1}" ]; then
|
|
if [ -f "${fileName1}" ]; then
|
|
echo "文件 ${fileName1} 存在,正在删除..."
|
|
echo "文件 ${fileName1} 存在,正在删除..."
|
|
|
|
|
|
-
|
|
+ rm "${fileName1}"
|
|
- mv "${fileName1}" ${PREDICT_PATH}/xxx_online.txt
|
|
+
|
|
if [ $? -eq 0 ]; then
|
|
if [ $? -eq 0 ]; then
|
|
echo "文件 ${fileName1} 已成功删除。"
|
|
echo "文件 ${fileName1} 已成功删除。"
|
|
else
|
|
else
|
|
@@ -33,8 +33,8 @@ fi
|
|
if [ -f "${fileName2}" ]; then
|
|
if [ -f "${fileName2}" ]; then
|
|
echo "文件 ${fileName2} 存在,正在删除..."
|
|
echo "文件 ${fileName2} 存在,正在删除..."
|
|
|
|
|
|
-
|
|
+ rm "${fileName2}"
|
|
- mv "${fileName2}" ${PREDICT_PATH}/xxx_new.txt
|
|
+
|
|
if [ $? -eq 0 ]; then
|
|
if [ $? -eq 0 ]; then
|
|
echo "文件 ${fileName2} 已成功删除。"
|
|
echo "文件 ${fileName2} 已成功删除。"
|
|
else
|
|
else
|