-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgz
executable file
·43 lines (32 loc) · 781 Bytes
/
gz
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
# check python installed
which python &> /dev/null
if [ "$?" != "0" ]; then
echo "python is not installed..."
exit 1
fi
# check pip installed
which pip &> /dev/null
if [ "$?" != "0" ]; then
echo "pip (python package management system) is not installed..."
exit 1
fi
# check tmux installed
which tmux &> /dev/null
if [ "$?" != "0" ]; then
echo "tmux is not installed..."
exit 1
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ ! -d $DIR/venv ]; then
echo "- install Gazua~~~!!!"
echo "- install path: $DIR"
echo "- create virtualenv"
virtualenv $DIR/venv
fi
source $DIR/venv/bin/activate
check_libs="$(pip freeze | grep urwid)"
if [ -z $check_libs ]; then
pip install -r requirements.txt
fi
python $DIR/gazua.py