-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
34 lines (32 loc) · 1.02 KB
/
init.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
33
34
#!/bin/bash
# 1. create a temp.sh file in working dir
# 2. then use terminal `bash temp.sh`
PS3='Please enter your choice: '
options=("pmml-bpmn-getting-started" "sklearn-getting-started" "synthetic-data-getting-started")
select opt in "${options[@]}"
do
case $opt in
"pmml-bpmn-getting-started")
echo "you chose choice $REPLY which is $opt"
break
;;
"sklearn-getting-started")
echo "you chose choice $REPLY which is $opt"
break
;;
"synthetic-data-getting-started")
echo "you chose choice $REPLY which is $opt"
break
;;
*) echo "invalid option $REPLY";;
esac
done
git init
git config core.sparsecheckout true
git remote add -f origin https://github.com/AI4BP/ainotes.git
echo "$opt/" >> .git/info/sparse-checkout
echo ".gitignore" >> .git/info/sparse-checkout
git pull origin main
git checkout main
cp ./$opt/init/requirements.txt ./ > /dev/null || :
cp ./$opt/init/Dockerfile ./ > /dev/null || :