forked from dandi/dandisets-healthstatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·32 lines (26 loc) · 877 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
set -ex
PYTHON="$HOME"/miniconda3/bin/python
DANDISETS_PATH=/mnt/backup/dandi/dandisets-healthstatus/dandisets
MOUNT_PATH=/mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
cd "$(dirname "$0")"
#git reset --hard HEAD
#git clean -df
# TODO: Uncomment these two lines when setting up the cronjob:
#git checkout main
#git pull
"$PYTHON" -m virtualenv --clear venv
. venv/bin/activate
pip install ./code
#pip install 'git+https://github.com/fsspec/filesystem_spec'
pip install 'git+https://github.com/jwodder/filesystem_spec@rlock-cache'
healthstatus check -d "$DANDISETS_PATH" -m "$MOUNT_PATH" -J 8 "$@"
healthstatus report
# TODO: Uncomment this block when setting up the cronjob:
#git add .
#if ! git diff --quiet --cached
#then git commit -m "Automatically update health statuses"
# git push
#else echo "No changes to commit"
#fi
# vim:set et sts=4: