1234567891011121314151617181920212223 |
- #! /bin/bash
- if [ -z "$1" ]
- then
- echo "No argument supplied"
- echo "Need to specify where you want to store data"
- exit 1
- fi
- path=$1
- for link in {"data","results","saved_models","models_infos","models_backup","threshold_map","learned_zones","custom_norm"}; do
-
- if [ -L ${link} ]; then
- rm ${link}
- fi
-
- if [ ! -d "${path}/${link}" ]; then
- mkdir -p ${path}/${link}
- fi
-
- ln -s ${path}/${link} ${link}
- done
|