From 785bae0677e4dd06eefa2c51f2bf43976452d44c Mon Sep 17 00:00:00 2001 From: heya02 Date: Tue, 4 Aug 2020 11:22:18 +0000 Subject: [PATCH] bug_fix --- python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh b/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh index 932d8cf..df68840 100755 --- a/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh +++ b/python/paddle_fl/mpc/examples/mnist_demo/run_standalone.sh @@ -64,12 +64,14 @@ $REDIS_BIN -h $SERVER -p $PORT flushall # remove temp data generated in last time PRED_FILE="/tmp/mnist_output_prediction.*" -if [ "$PRED_FILE" ]; then +ls ${PRED_FILE} +if [ $? -eq 0 ]; then rm -rf $PRED_FILE fi TRAINING_FILE="/tmp/mnist2_feature.part*" -if [ ! "$TRAINING_FILE" ]; then +ls ${TRAINING_FILE} +if [ $? -ne 0 ]; then echo "There is no data in /tmp, please prepare data with "python prepare.py" firstly" exit 1 else -- GitLab