-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
43 lines (43 loc) · 1.15 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
echo "To Do PoC App Installer"
echo "Note that this script may be system specific, so verify its contents in case of an error"
echo "Do you have python3 and pip3 installed? Y (yes) / N (no)"
read VALID
if [ $VALID == "Y" -o $VALID == "y" ]
then
echo "What do you want to do?"
select CHOICE in "install" "uninstall"
do
case $CHOICE in
"install")
echo "Do you want to install in Development mode? Y (yes) / N (no)"
read DEV
if [ $DEV == "Y" -o $DEV == "y" ]
then
pip3 install -e ./todopoc
else
pip3 install ./todopoc
fi
if [ $? ]
then
echo "App has been installed"
else
echo "There was some error"
fi
break
;;
"uninstall")
pip3 uninstall todopoc
if [ $? ]
then
echo "App has been uninstalled"
else
echo "There was some error"
fi
break
;;
esac
done
else
echo "Install python and pip and then try again"
fi