generate_symlinks.sh 323 B

123456789101112131415
  1. #! /bin/bash
  2. if [ -z "$1" ]
  3. then
  4. echo "No argument supplied"
  5. echo "Need to specify where you want to store data"
  6. exit 1
  7. fi
  8. path=$1
  9. for link in {"data","results","saved_models","models_infos","models_backup","threshold_map","learned_zones","custom_norm"}; do
  10. rm ${link}
  11. ln -s $1/${link} ${link}
  12. done