-
Notifications
You must be signed in to change notification settings - Fork 3
/
postBuild
executable file
·39 lines (31 loc) · 1.34 KB
/
postBuild
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
33
34
35
36
37
38
39
#!/bin/bash
echo "Running jupyter contrib nbextension install"
jupyter contrib nbextension install --user
echo "Finished jupyter contrib nbextension install"
# echo "Running nbextension enable exercise2/main"
# jupyter nbextension enable exercise2/main
# echo "Finished nbextension enable exercise2/main"
echo "Running nbextension enable toc2/main"
jupyter nbextension enable toc2/main
echo "Finished nbextension enable toc2/main"
# download the FaceRecognition.zip file from dropbox
echo "Downloading FaceRecognition.zip"
wget -q -O ~/FaceRecognition.zip "https://dl.dropboxusercontent.com/s/q030cu844joczm6/FaceRecognition.zip"
echo "Finished downloading FaceRecognition.zip"
echo "Unzipping FaceRecognition.zip"
unzip ~/FaceRecognition.zip -d ~/
echo "Finished unzipping FaceRecognition.zip"
echo "Removing FaceRecognition.zip"
rm ~/FaceRecognition.zip
echo "Finished removing FaceRecognition.zip"
# move the contents from ~/FaceRecognition/data/bids to ~/data
echo "Moving the contents from ~/FaceRecognition/data/bids to ~/data"
mkdir -p ~/data/
mv ~/FaceRecognition/data/bids/* ~/data/
# move the contents from ~/FaceRecognition/results to ~/results
echo "Moving the contents from ~/FaceRecognition/results to ~/results"
mkdir -p ~/results/
mv ~/FaceRecognition/results/* ~/results/
# remove the FaceRecognition folder
rm -rf ~/FaceRecognition/
echo "All done!"