diff options
Diffstat (limited to 'create_test_prediction_models.rb')
-rw-r--r-- | create_test_prediction_models.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/create_test_prediction_models.rb b/create_test_prediction_models.rb index 4fc2412..f41515c 100644 --- a/create_test_prediction_models.rb +++ b/create_test_prediction_models.rb @@ -93,7 +93,7 @@ end =end # remove existing local dump -`rm -r dump/#{ENV["LAZAR_ENV"]}` +`if [ -d dump/#{ENV["LAZAR_ENV"]} ]; then rm -Rf dump/#{ENV["LAZAR_ENV"]}; fi` # store local dump but git ignored `mongodump -h #{CENTRAL_MONGO_IP.blank? ? "127.0.0.1" : CENTRAL_MONGO_IP} -d #{ENV["LAZAR_ENV"]}` |