43 |
exit |
exit |
44 |
fi |
fi |
45 |
|
|
46 |
|
|
47 |
|
if [ ! -x "/usr/local/bin/n" ] ; then |
48 |
|
echo "installing node.js bootstrap" |
49 |
|
curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n || exit |
50 |
|
chmod +x /usr/local/bin/n |
51 |
|
fi |
52 |
|
|
53 |
|
if [ ! -x "/usr/local/bin/node" ] ; then |
54 |
|
echo "installing node.js" |
55 |
|
n stable |
56 |
|
fi |
57 |
|
|
58 |
|
|
59 |
|
|
60 |
if [ ! -d "xo-web" ] ; then |
if [ ! -d "xo-web" ] ; then |
61 |
git clone -b $BRANCH https://github.com/vatesfr/xo-web.git |
git clone -b $BRANCH https://github.com/vatesfr/xo-web.git |
62 |
else |
else |