#!/bin/bash -ef

mkdir -p ~/mne_data/fOLD
cd ~/mne_data/fOLD
curl -L https://github.com/nirx/fOLD-public/archive/master.zip --output data.zip
unzip data.zip
rm data.zip
if [ "${CIRCLECI}" == "true" ]; then
    echo "export MNE_NIRS_FOLD_PATH=~/mne_data/fOLD/fOLD-public-master/Supplementary" >> ${BASH_ENV};
elif [ "${GITHUB_ACTIONS}" == "true" ]; then
    echo "MNE_NIRS_FOLD_PATH=~/mne_data/fOLD/fOLD-public-master/Supplementary" >> ${GITHUB_ENV};
fi
