Skip to content

Commit

Permalink
Solve minor bug when SetupDataModel.sh is applied whereas DataModel a…
Browse files Browse the repository at this point in the history
…lready exist
  • Loading branch information
gpronost committed Jan 7, 2021
1 parent 369a7e1 commit ab87025
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SetupDataModel.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [ ! -z ./leaf/DataModel ]; then
echo "Remove previous link"
rm ./leaf/DataModel
fi

if [ "$HK_ASTROANALYSIS_DIR" == "" ] || [ -z $HK_ASTROANALYSIS_DIR ]; then
echo "HK_ASTROANALYSIS_DIR is not defined or doesn't exist ($HK_ASTROANALYSIS_DIR). Will use lite DataModel."
Expand Down

0 comments on commit ab87025

Please sign in to comment.