forked from sebastienvercammen/ptc-acc-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
27 lines (27 loc) · 765 Bytes
/
install.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
#!/bin/bash
sudo apt-get install libnss3-dev
sudo apt-get install libxss1
which git 2>&1 >/dev/null
if [ $? -ne 0 ] ; then
echo git is not currently installed
echo Please install git before proceeding
else
git submodule init
git submodule update
if [ $? -ne 0 ] ; then
echo submodule install failed.
echo Maybe try cloning recursively?
echo git clone --recursive https://github.com/FrostTheFox/ptc-acc-gen.git
fi
sudo apt-get update 2> /dev/null
sudo apt-get install -y npm nodejs
if [ $? -ne 0 ] ; then
echo depenencies install failed. Please use the installer of your choice to grab them
echo examples:
echo apt-get install npm nodejs
echo yum install npm nodejs
else
sudo npm install
fi
fi
python config.py